Vergleich admin/templates.php - 1.2.3 - 1.2.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 3Zeile 3
 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * MyBB 1.2
* Copyright � 2006 MyBB Group, All Rights Reserved
*

 * Website: http://www.mybboard.com
* License: http://www.mybboard.com/eula.html

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/eula.html

 *

 *

 * $Id: templates.php 2655 2007-01-15 06:41:53Z Christian $

 * $Id: templates.php 3273 2007-08-19 17:36:57Z Tikitiki $

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 15Zeile 15

// Just a little fix here
$db->query("DELETE FROM ".TABLE_PREFIX."templates WHERE title=''");


// Just a little fix here
$db->query("DELETE FROM ".TABLE_PREFIX."templates WHERE title=''");

 
$db->query("SET SQL_BIG_SELECTS=1");


// Load language packs for this section
global $lang;


// Load language packs for this section
global $lang;

Zeile 226Zeile 227
		$query = $db->query("SELECT tid, title, template, sid FROM ".TABLE_PREFIX."templates WHERE template LIKE '%".$db->escape_string($mybb->input['find'])."%' ORDER BY sid,title ASC");
if($db->num_rows($query) == 0)
{

		$query = $db->query("SELECT tid, title, template, sid FROM ".TABLE_PREFIX."templates WHERE template LIKE '%".$db->escape_string($mybb->input['find'])."%' ORDER BY sid,title ASC");
if($db->num_rows($query) == 0)
{

			makelabelcode(sprintf($lang->search_noresults, $mybb->input['find']));

			makelabelcode(sprintf($lang->search_noresults, htmlspecialchars_uni($mybb->input['find'])));

		}
else
{

		}
else
{

Zeile 246Zeile 247
			foreach($template_list as $sid => $templates)
{
// Show group header

			foreach($template_list as $sid => $templates)
{
// Show group header

				$search_header = sprintf($lang->search_header, $mybb->input['find'], $template_groups[$sid]);

				$search_header = sprintf($lang->search_header, htmlspecialchars_uni($mybb->input['find']), $template_groups[$sid]);

				tablesubheader($search_header);

foreach($templates as $title => $template)

				tablesubheader($search_header);

foreach($templates as $title => $template)

Zeile 482Zeile 483
	makehiddencode("setid", $mybb->input['setid']);
starttable();
tableheader($lang->delete_template_set, "", 1);

	makehiddencode("setid", $mybb->input['setid']);
starttable();
tableheader($lang->delete_template_set, "", 1);

	$yes = makebuttoncode("deletesubmit", "Yes");
$no = makebuttoncode("no", "No");

	$yes = makebuttoncode("deletesubmit", $lang->yes);
$no = makebuttoncode("no", $lang->no);

	makelabelcode("<div align=\"center\">$lang->delete_set_notice {$templateset['title']}?<br /><br />$yes$no</div>", "");
endtable();
endform();

	makelabelcode("<div align=\"center\">$lang->delete_set_notice {$templateset['title']}?<br /><br />$yes$no</div>", "");
endtable();
endform();