Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/eula.html *
|
* $Id: templates.php 3014 2007-04-22 10:27:34Z musicalmidget $
| * $Id: templates.php 3273 2007-08-19 17:36:57Z Tikitiki $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
Zeile 15 | Zeile 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 226 | Zeile 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 246 | Zeile 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)
|