Skip to content
Permalink
Browse files

Rename *.subs files.

Signed-off-by: Norv <a.w.norv@gmail.com>
  • Loading branch information
norv committed Jan 19, 2013
1 parent 92713cc commit 308dacfd94bd24a531abf142ae2cce097272fb5b
Showing with 344 additions and 344 deletions.
  1. +8 −8 SSI.php
  2. +5 −5 Sources/Dispatcher.class.php
  3. +1 −1 Sources/Drafts.php
  4. +4 −4 Sources/Load.php
  5. +9 −9 Sources/ScheduledTasks.php
  6. +6 −6 Sources/Security.php
  7. +6 −6 Sources/admin/Admin.php
  8. +2 −2 Sources/admin/ManageAttachments.php
  9. +1 −1 Sources/admin/ManageBadBehavior.php
  10. +3 −3 Sources/admin/ManageBans.php
  11. +5 −5 Sources/admin/ManageBoards.php
  12. +4 −4 Sources/admin/ManageCalendar.php
  13. +8 −8 Sources/admin/ManageLanguages.php
  14. +1 −1 Sources/admin/ManageMail.php
  15. +6 −6 Sources/admin/ManageMaintenance.php
  16. +5 −5 Sources/admin/ManageMembergroups.php
  17. +11 −11 Sources/admin/ManageMembers.php
  18. +7 −7 Sources/admin/ManageNews.php
  19. +2 −2 Sources/admin/ManagePaid.php
  20. +2 −2 Sources/admin/ManagePermissions.php
  21. +1 −1 Sources/admin/ManagePosts.php
  22. +1 −1 Sources/admin/ManageRegistration.php
  23. +2 −2 Sources/admin/ManageScheduledTasks.php
  24. +3 −3 Sources/admin/ManageSearchEngines.php
  25. +2 −2 Sources/admin/ManageServer.php
  26. +2 −2 Sources/admin/ManageSettings.php
  27. +6 −6 Sources/admin/ManageSmileys.php
  28. +1 −1 Sources/admin/Modlog.php
  29. +1 −1 Sources/admin/PackageServers.php
  30. +9 −9 Sources/admin/Packages.php
  31. +1 −1 Sources/admin/RepairBoards.php
  32. +1 −1 Sources/admin/Reports.php
  33. +1 −1 Sources/admin/Themes.php
  34. +1 −1 Sources/controllers/Announce.controller.php
  35. +7 −7 Sources/controllers/BoardIndex.controller.php
  36. +4 −4 Sources/controllers/Calendar.controller.php
  37. +4 −4 Sources/controllers/Display.controller.php
  38. +6 −6 Sources/controllers/Emailuser.controller.php
  39. +6 −6 Sources/controllers/Groups.controller.php
  40. +1 −1 Sources/controllers/Karma.controller.php
  41. +6 −6 Sources/controllers/LogInOut.controller.php
  42. +4 −4 Sources/controllers/Markasread.controller.php
  43. +3 −3 Sources/controllers/MessageIndex.controller.php
  44. +7 −7 Sources/controllers/ModerationCenter.controller.php
  45. +5 −5 Sources/controllers/MoveTopic.controller.php
  46. +1 −1 Sources/controllers/News.controller.php
  47. +3 −3 Sources/controllers/Notify.controller.php
  48. +8 −8 Sources/controllers/PersonalMessage.controller.php
  49. +3 −3 Sources/controllers/Poll.controller.php
  50. +14 −14 Sources/controllers/Post.controller.php
  51. +5 −5 Sources/controllers/PostModeration.controller.php
  52. +2 −2 Sources/controllers/Profile.controller.php
  53. +7 −7 Sources/controllers/ProfileAccount.controller.php
  54. +4 −4 Sources/controllers/ProfileHistory.controller.php
  55. +4 −4 Sources/controllers/ProfileInfo.controller.php
  56. +14 −14 Sources/controllers/ProfileOptions.controller.php
  57. +1 −1 Sources/controllers/ProfileSubscriptions.controller.php
  58. +2 −2 Sources/controllers/Recent.controller.php
  59. +12 −12 Sources/controllers/Register.controller.php
  60. +4 −4 Sources/controllers/Reminder.controller.php
  61. +8 −8 Sources/controllers/RemoveTopic.controller.php
  62. +4 −4 Sources/controllers/Search.controller.php
  63. +5 −5 Sources/controllers/SplitTopics.controller.php
  64. +4 −4 Sources/controllers/Topic.controller.php
  65. +5 −5 Sources/controllers/Xml.controller.php
  66. +1 −1 Sources/{Subs-Admin.php → lib/Admin.subs.php}
  67. +7 −7 Sources/{Subs-Attachments.php → lib/Attachments.subs.php}
  68. +2 −2 Sources/{Subs-Auth.php → lib/Auth.subs.php}
  69. 0 Sources/{Subs-BadBehavior.php → lib/BadBehavior.subs.php}
  70. 0 Sources/{Subs-BoardIndex.php → lib/BoardIndex.subs.php}
  71. +1 −1 Sources/{Subs-Boards.php → lib/Boards.subs.php}
  72. 0 Sources/{Subs-Cache.php → lib/Cache.subs.php}
  73. +1 −1 Sources/{Subs-Calendar.php → lib/Calendar.subs.php}
  74. +2 −2 Sources/{Subs-Categories.php → lib/Categories.subs.php}
  75. 0 Sources/{Subs-Charset.php → lib/Charset.subs.php}
  76. 0 Sources/{Subs-Compat.php → lib/Compat.subs.php}
  77. +3 −3 Sources/{Subs-Db-mysql.php → lib/Db-mysql.subs.php}
  78. 0 Sources/{Subs-Db-postgresql.php → lib/Db-postgresql.subs.php}
  79. 0 Sources/{Subs-Db-sqlite.php → lib/Db-sqlite.subs.php}
  80. 0 Sources/{Subs-Drafts.php → lib/Drafts.subs.php}
  81. 0 Sources/{Subs-Editor.php → lib/Editor.subs.php}
  82. +1 −1 Sources/{Subs-Graphics.php → lib/Graphics.subs.php}
  83. 0 Sources/{Subs-Karma.php → lib/Karma.subs.php}
  84. 0 Sources/{Subs-List.php → lib/List.subs.php}
  85. 0 Sources/{Subs-Mail.php → lib/Mail.subs.php}
  86. 0 Sources/{Subs-Membergroups.php → lib/Membergroups.subs.php}
  87. +5 −5 Sources/{Subs-Members.php → lib/Members.subs.php}
  88. 0 Sources/{Subs-MembersOnline.php → lib/MembersOnline.subs.php}
  89. 0 Sources/{Subs-Menu.php → lib/Menu.subs.php}
  90. 0 Sources/{Subs-MessageIndex.php → lib/MessageIndex.subs.php}
  91. +2 −2 Sources/{Subs-OpenID.php → lib/OpenID.subs.php}
  92. +2 −2 Sources/{Subs-Package.php → lib/Package.subs.php}
  93. +2 −2 Sources/{Subs-PersonalMessage.php → lib/PersonalMessage.subs.php}
  94. +6 −6 Sources/{Subs-Post.php → lib/Post.subs.php}
  95. 0 Sources/{Subs-Recent.php → lib/Recent.subs.php}
  96. 0 Sources/{Subs-Sound.php → lib/Sound.subs.php}
  97. +3 −3 Sources/{Subs-Topic.php → lib/Topic.subs.php}
  98. +1 −1 index.php
  99. +6 −6 install/install.php
  100. +7 −7 install/upgrade.php
  101. +1 −1 subscriptions.php
16 SSI.php
@@ -68,7 +68,7 @@
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Logging.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Subs-Cache.php');
require_once($sourcedir . '/subs/Cache.subs.php.php');

This comment has been minimized.

Copy link
@eurich

eurich Jan 20, 2013

Contributor

.php.php at the end ? Search and replace bug IMO.

This comment has been minimized.

Copy link
@norv

norv Jan 20, 2013

Author Contributor

Thank you! I must have made many of these oopses.
Fixed with 09752df

require_once($sourcedir . '/Security.php');
require_once($sourcedir . '/BrowserDetect.class.php');

@@ -159,7 +159,7 @@
// Do we allow guests in here?
if (empty($ssi_guest_access) && empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && basename($_SERVER['PHP_SELF']) != 'SSI.php')
{
require_once($sourcedir . '/Subs-Auth.php');
require_once($sourcedir . '/subs/Auth.subs.php.php');
KickGuest();
obExit(null, true);
}
@@ -956,7 +956,7 @@ function ssi_whosOnline($output_method = 'echo')
{
global $user_info, $txt, $sourcedir, $settings, $modSettings;

require_once($sourcedir . '/Subs-MembersOnline.php');
require_once($sourcedir . '/subs/MembersOnline.subs.php');
$membersOnlineOptions = array(
'show_hidden' => allowedTo('moderate_forum'),
);
@@ -1462,7 +1462,7 @@ function ssi_pollVote()
{
$_COOKIE['guest_poll_vote'] = !empty($_COOKIE['guest_poll_vote']) ? ($_COOKIE['guest_poll_vote'] . ',' . $row['id_poll']) : $row['id_poll'];

require_once($sourcedir . '/Subs-Auth.php');
require_once($sourcedir . '/subs/Auth.subs.php.php');
$cookie_url = url_parts(!empty($modSettings['localCookies']), !empty($modSettings['globalCookies']));
smf_setcookie('guest_poll_vote', $_COOKIE['guest_poll_vote'], time() + 2500000, $cookie_url[1], $cookie_url[0], false, false);
}
@@ -1510,7 +1510,7 @@ function ssi_todaysBirthdays($output_method = 'echo')
'include_birthdays' => true,
'num_days_shown' => empty($modSettings['cal_days_for_index']) || $modSettings['cal_days_for_index'] < 1 ? 1 : $modSettings['cal_days_for_index'],
);
$return = cache_quick_get('calendar_index_offset_' . ($user_info['time_offset'] + $modSettings['time_offset']), 'Subs-Calendar.php', 'cache_getRecentEvents', array($eventOptions));
$return = cache_quick_get('calendar_index_offset_' . ($user_info['time_offset'] + $modSettings['time_offset']), 'subs/Calendar.subs.php.php', 'cache_getRecentEvents', array($eventOptions));

if ($output_method != 'echo')
return $return['calendar_birthdays'];
@@ -1532,7 +1532,7 @@ function ssi_todaysHolidays($output_method = 'echo')
'include_holidays' => true,
'num_days_shown' => empty($modSettings['cal_days_for_index']) || $modSettings['cal_days_for_index'] < 1 ? 1 : $modSettings['cal_days_for_index'],
);
$return = cache_quick_get('calendar_index_offset_' . ($user_info['time_offset'] + $modSettings['time_offset']), 'Subs-Calendar.php', 'cache_getRecentEvents', array($eventOptions));
$return = cache_quick_get('calendar_index_offset_' . ($user_info['time_offset'] + $modSettings['time_offset']), 'subs/Calendar.subs.php.php', 'cache_getRecentEvents', array($eventOptions));

if ($output_method != 'echo')
return $return['calendar_holidays'];
@@ -1553,7 +1553,7 @@ function ssi_todaysEvents($output_method = 'echo')
'include_events' => true,
'num_days_shown' => empty($modSettings['cal_days_for_index']) || $modSettings['cal_days_for_index'] < 1 ? 1 : $modSettings['cal_days_for_index'],
);
$return = cache_quick_get('calendar_index_offset_' . ($user_info['time_offset'] + $modSettings['time_offset']), 'Subs-Calendar.php', 'cache_getRecentEvents', array($eventOptions));
$return = cache_quick_get('calendar_index_offset_' . ($user_info['time_offset'] + $modSettings['time_offset']), 'subs/Calendar.subs.php.php', 'cache_getRecentEvents', array($eventOptions));

if ($output_method != 'echo')
return $return['calendar_events'];
@@ -1582,7 +1582,7 @@ function ssi_todaysCalendar($output_method = 'echo')
'include_events' => true,
'num_days_shown' => empty($modSettings['cal_days_for_index']) || $modSettings['cal_days_for_index'] < 1 ? 1 : $modSettings['cal_days_for_index'],
);
$return = cache_quick_get('calendar_index_offset_' . ($user_info['time_offset'] + $modSettings['time_offset']), 'Subs-Calendar.php', 'cache_getRecentEvents', array($eventOptions));
$return = cache_quick_get('calendar_index_offset_' . ($user_info['time_offset'] + $modSettings['time_offset']), 'subs/Calendar.subs.php.php', 'cache_getRecentEvents', array($eventOptions));

if ($output_method != 'echo')
return $return;
@@ -64,14 +64,14 @@ public function __construct()
// "maintenance mode" page
else
{
$this->_file_name = $sourcedir . '/Subs-Auth.php';
$this->_file_name = $sourcedir . '/Auth.subs.php';
$this->_function_name = 'InMaintenance';
}
}
// If guest access is disallowed, a guest is kicked out... politely. :P
elseif (empty($modSettings['allow_guestAccess']) && $user_info['is_guest'] && (!isset($_GET['action']) || !in_array($_GET['action'], array('coppa', 'login', 'login2', 'register', 'register2', 'reminder', 'activate', 'help', 'mailq', 'verificationcode', 'openidreturn'))))
{
$this->_file_name = $sourcedir . '/Subs-Auth.php';
$this->_file_name = $sourcedir . '/Auth.subs.php';
$this->_function_name = 'KickGuest';
}
elseif (empty($_GET['action']))
@@ -133,7 +133,7 @@ public function __construct()
'quickhelp' => array('Help.controller.php', 'action_quickhelp'),
'jsmodify' => array('Post.controller.php', 'action_jsmodify'),
'jsoption' => array('Themes.php', 'action_jsoption'),
'loadeditorlocale' => array('Subs-Editor.php', 'action_loadlocale'),
'loadeditorlocale' => array('subs/Editor.subs.php.php', 'action_loadlocale'),
'lock' => array('Topic.controller.php', 'action_lock'), // done
'lockvoting' => array('Poll.controller.php', 'action_lockvoting'),
'login' => array('LogInOut.controller.php', 'action_login'),
@@ -148,7 +148,7 @@ public function __construct()
'movetopic2' => array('MoveTopic.controller.php', 'action_movetopic2'),
'notify' => array('Notify.controller.php', 'action_notify'),
'notifyboard' => array('Notify.controller.php', 'action_notifyboard'),
'openidreturn' => array('Subs-OpenID.php', 'action_openidreturn'),
'openidreturn' => array('OpenID.subs.php', 'action_openidreturn'),
'pm' => array('PersonalMessage.controller.php', 'action_pm'),
'post' => array('Post.controller.php', 'action_post'),
'post2' => array('Post.controller.php', 'action_post2'),
@@ -170,7 +170,7 @@ public function __construct()
'search2' => array('Search.controller.php', 'action_plushsearch2'),
// 'sendtopic' => array('Emailuser.controller.php', 'action_sendtopic'),
'suggest' => array('Suggest.controller.php', 'action_suggest'),
'spellcheck' => array('Subs-Post.php', 'action_spellcheck'),
'spellcheck' => array('Post.subs.php', 'action_spellcheck'),
'splittopics' => array('SplitTopics.controller.php', 'action_splittopics'),
'stats' => array('Stats.controller.php', 'action_stats'),
'sticky' => array('Topic.controller.php', 'action_sticky'), // done
@@ -19,7 +19,7 @@

// language and helper functions
loadLanguage('Drafts');
require_once($sourcedir . '/Subs-Drafts.php');
require_once($sourcedir . '/Drafts.subs.php');

/**
* Saves a post draft in the user_drafts table
@@ -117,12 +117,12 @@ function reloadSettings()
'strtolower' => function_exists('mb_strtolower') ? create_function('$string', '
return mb_strtolower($string, \'UTF-8\');') : create_function('$string', '
global $sourcedir;
require_once($sourcedir . \'/Subs-Charset.php\');
require_once($sourcedir . \'/subs/Charset.subs.php\');
return utf8_strtolower($string);'),
'strtoupper' => function_exists('mb_strtoupper') ? create_function('$string', '
return mb_strtoupper($string, \'UTF-8\');') : create_function('$string', '
global $sourcedir;
require_once($sourcedir . \'/Subs-Charset.php\');
require_once($sourcedir . \'/subs/Charset.subs.php\');
return utf8_strtoupper($string);'),
'truncate' => create_function('$string, $length', (empty($modSettings['disableEntityCheck']) ? '
global $smcFunc;
@@ -858,7 +858,7 @@ function loadPermissions()
{
if (!isset($_SESSION['mc']) || $_SESSION['mc']['time'] <= $modSettings['settings_updated'])
{
require_once($sourcedir . '/Subs-Auth.php');
require_once($sourcedir . '/subs/Auth.subs.php');
rebuildModCache();
}
else
@@ -2428,7 +2428,7 @@ function template_include($filename, $once = false)
</html>';
else
{
require_once($sourcedir . '/Subs-Package.php');
require_once($sourcedir . '/subs/Package.subs.php.php');

$error = fetch_web_data($boardurl . strtr($filename, array($boarddir => '', strtr($boarddir, '\\', '/') => '')));
if (empty($error) && ini_get('track_errors'))
@@ -284,7 +284,7 @@ function scheduled_approval_notification()
$smcFunc['db_free_result']($request);

// Get the mailing stuff.
require_once($sourcedir . '/Subs-Mail.php');
require_once($sourcedir . '/subs/Mail.subs.php.php');

// Need the below for loadLanguage to work!
loadEssentialThemeData();
@@ -453,7 +453,7 @@ function scheduled_daily_maintenance()
// Regenerate the Diffie-Hellman keys if OpenID is enabled.
if (!empty($modSettings['enableOpenID']))
{
require_once($sourcedir . '/Subs-OpenID.php');
require_once($sourcedir . '/subs/OpenID.subs.php.php');
openID_setup_DH(true);
}
elseif (!empty($modSettings['dh_keys']))
@@ -535,7 +535,7 @@ function scheduled_daily_digest()
global $is_weekly, $txt, $mbname, $scripturl, $sourcedir, $smcFunc, $context, $modSettings;

// We'll want this...
require_once($sourcedir . '/Subs-Mail.php');
require_once($sourcedir . '/subs/Mail.subs.php.php');
loadEssentialThemeData();

$is_weekly = !empty($is_weekly) ? 1 : 0;
@@ -972,7 +972,7 @@ function ReduceMailQueue($number = false, $override_limit = false, $force_send =
return false;

if (!empty($modSettings['mail_type']) && $modSettings['smtp_host'] != '')
require_once($sourcedir . '/Subs-Post.php');
require_once($sourcedir . '/subs/Post.subs.php.php');

// Send each email, yea!
$failed_emails = array();
@@ -1275,7 +1275,7 @@ function scheduled_fetchFiles()
$smcFunc['db_free_result']($request);

// We're gonna need fetch_web_data() to pull this off.
require_once($sourcedir . '/Subs-Package.php');
require_once($sourcedir . '/subs/Package.subs.php.php');

// Just in case we run into a problem.
loadEssentialThemeData();
@@ -1324,7 +1324,7 @@ function scheduled_birthdayemails()
loadEssentialThemeData();

// Going to need this to send the emails.
require_once($sourcedir . '/Subs-Mail.php');
require_once($sourcedir . '/subs/Mail.subs.php.php');

$greeting = isset($modSettings['birthday_email']) ? $modSettings['birthday_email'] : 'happy_birthday';

@@ -1642,7 +1642,7 @@ function scheduled_paid_subscriptions()
// If this is the first one load the important bits.
if (empty($subs_reminded))
{
require_once($sourcedir . '/Subs-Mail.php');
require_once($sourcedir . '/subs/Mail.subs.php.php');
// Need the below for loadLanguage to work!
loadEssentialThemeData();
}
@@ -1750,7 +1750,7 @@ function scheduled_remove_topic_redirect()
// Zap, your gone
if (count($topics) > 0)
{
require_once($sourcedir . '/Subs-Topic.php');
require_once($sourcedir . '/subs/Topic.subs.php.php');
removeTopics($topics, false, true);
}

@@ -1790,7 +1790,7 @@ function scheduled_remove_old_drafts()
// If we have old one, remove them
if (count($drafts) > 0)
{
require_once($sourcedir . '/Subs-Drafts.php');
require_once($sourcedir . '/subs/Drafts.subs.php.php');
deleteDrafts($drafts, -1, false);
}

@@ -25,7 +25,7 @@
* Check if the user is who he/she says he is
* Makes sure the user is who they claim to be by requiring a password to be typed in every hour.
* Is turned on and off by the securityDisable setting.
* Uses the adminLogin() function of Subs-Auth.php if they need to login, which saves all request (post and get) data.
* Uses the adminLogin() function of subs/Auth.subs.php.php if they need to login, which saves all request (post and get) data.
*
* @param string $type = admin
*/
@@ -52,7 +52,7 @@ function validateSession($type = 'admin')
if ((!empty($_SESSION[$type . '_time']) && $_SESSION[$type . '_time'] + $refreshTime >= time()) || (!empty($_SESSION['admin_time']) && $_SESSION['admin_time'] + $refreshTime >= time()))
return;

require_once($sourcedir . '/Subs-Auth.php');
require_once($sourcedir . '/subs/Auth.subs.php.php');

// Hashed password, ahoy!
if (isset($_POST[$type . '_hash_pass']) && strlen($_POST[$type . '_hash_pass']) == 40)
@@ -87,7 +87,7 @@ function validateSession($type = 'admin')
// OpenID?
if (!empty($user_settings['openid_uri']))
{
require_once($sourcedir . '/Subs-OpenID.php');
require_once($sourcedir . '/subs/OpenID.subs.php.php');
openID_revalidate();

$_SESSION[$type . '_time'] = time();
@@ -311,7 +311,7 @@ function is_not_banned($forceCheck = false)
// My mistake. Next time better.
if (!isset($_SESSION['ban']['cannot_access']))
{
require_once($sourcedir . '/Subs-Auth.php');
require_once($sourcedir . '/subs/Auth.subs.php.php');
$cookie_url = url_parts(!empty($modSettings['localCookies']), !empty($modSettings['globalCookies']));
smf_setcookie($cookiename . '_', '', time() - 3600, $cookie_url[1], $cookie_url[0], false, false);
}
@@ -351,7 +351,7 @@ function is_not_banned($forceCheck = false)
);

// A goodbye present.
require_once($sourcedir . '/Subs-Auth.php');
require_once($sourcedir . '/subs/Auth.subs.php.php');
$cookie_url = url_parts(!empty($modSettings['localCookies']), !empty($modSettings['globalCookies']));
smf_setcookie($cookiename . '_', implode(',', $_SESSION['ban']['cannot_access']['ids']), time() + 3153600, $cookie_url[1], $cookie_url[0], false, false);

@@ -482,7 +482,7 @@ function banPermissions()
$user_info['mod_cache'] = $_SESSION['mc'];
else
{
require_once($sourcedir . '/Subs-Auth.php');
require_once($sourcedir . '/subs/Auth.subs.php.php');
rebuildModCache();
}

@@ -39,12 +39,12 @@ function AdminMain()
// No indexing evil stuff.
$context['robot_no_index'] = true;

require_once($sourcedir . '/Subs-Menu.php');
require_once($sourcedir . '/subs/Menu.subs.php.php');

// Some preferences.
$context['admin_preferences'] = !empty($options['admin_preferences']) ? unserialize($options['admin_preferences']) : array();

// Define the menu structure - see Subs-Menu.php for details!
// Define the menu structure - see subs/Menu.subs.php.php for details!
$admin_areas = array(
'forum' => array(
'title' => $txt['admin_main'],
@@ -557,7 +557,7 @@ function AdminHome()
isAllowedTo(array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments'));

// Find all of this forum's administrators...
require_once($sourcedir . '/Subs-Membergroups.php');
require_once($sourcedir . '/subs/Membergroups.subs.php.php');
if (listMembergroupMembers_Href($context['administrators'], 1, 32) && allowedTo('manage_membergroups'))
{
// Add a 'more'-link if there are more than 32.
@@ -573,7 +573,7 @@ function AdminHome()
$context['forum_version'] = $forum_version;

// Get a list of current server versions.
require_once($sourcedir . '/Subs-Admin.php');
require_once($sourcedir . '/subs/Admin.subs.php');
$checkFor = array(
'gd',
'imagick',
@@ -733,7 +733,7 @@ function AdminSearch()
$context['admin_preferences']['sb'] = $context['search_type'];

// Update the preferences.
require_once($sourcedir . '/Subs-Admin.php');
require_once($sourcedir . '/subs/Admin.subs.php');
updateAdminPreferences();
}

@@ -924,7 +924,7 @@ function AdminSearchOM()
$postVars = implode('+', $postVars);

// Get the results from the doc site.
require_once($sourcedir . '/Subs-Package.php');
require_once($sourcedir . '/subs/Package.subs.php.php');
// Demo URL:
// https://github.com/elkarte/Elkarte/wiki/api.php?action=query&list=search&srprop=timestamp|snippet&format=xml&srwhat=text&srsearch=template+eval
$search_results = fetch_web_data($context['doc_apiurl'] . '?action=query&list=search&srprop=timestamp|snippet&format=xml&srwhat=text&srsearch=' . $postVars);
@@ -550,7 +550,7 @@ function action_browse()
);

// Create the list.
require_once($sourcedir . '/Subs-List.php');
require_once($sourcedir . '/subs/List.subs.php.php');
createList($listOptions);
}

@@ -1988,7 +1988,7 @@ function action_attachpaths()
),
),
);
require_once($sourcedir . '/Subs-List.php');
require_once($sourcedir . '/subs/List.subs.php.php');
createList($listOptions);

if (!empty($modSettings['attachment_basedirectories']))
@@ -32,7 +32,7 @@ function action_badbehaviorlog()
loadTemplate('BadBehavior');

// Functions we will need
require_once($sourcedir . '/Subs-BadBehavior.php');
require_once($sourcedir . '/subs/BadBehavior.subs.php.php');

// You can filter by any of the following columns:
$filters = array(
@@ -291,7 +291,7 @@ function action_list()
),
);

require_once($sourcedir . '/Subs-List.php');
require_once($sourcedir . '/subs/List.subs.php.php');
createList($listOptions);

$context['sub_template'] = 'show_list';
@@ -1325,7 +1325,7 @@ function action_browse()
}

// Create the list.
require_once($sourcedir . '/Subs-List.php');
require_once($sourcedir . '/subs/List.subs.php.php');
createList($listOptions);

// The list is the only thing to show, so make it the default sub template.
@@ -1559,7 +1559,7 @@ function action_log()

createToken('admin-bl');

require_once($sourcedir . '/Subs-List.php');
require_once($sourcedir . '/subs/List.subs.php.php');
createList($listOptions);

$context['page_title'] = $txt['ban_log'];

0 comments on commit 308dacf

Please sign in to comment.
You can’t perform that action at this time.