Skip to content

Commit

Permalink
Eliminar plugin ADK Portal
Browse files Browse the repository at this point in the history
Se incluyen los cambios tras la desinstalación del plugin.
  • Loading branch information
xaabi6 committed Dec 9, 2021
1 parent 75a44e8 commit d24c748
Show file tree
Hide file tree
Showing 220 changed files with 1,435 additions and 18,714 deletions.
Empty file removed Adk-downloads/index.html
Empty file.
Binary file not shown.
2 changes: 1 addition & 1 deletion Packages/installed.list
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1626422281
1639009595
12 changes: 0 additions & 12 deletions SSI.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@
require_once($sourcedir . '/Subs.php');
require_once($sourcedir . '/Errors.php');
require_once($sourcedir . '/Load.php');
require_once($sourcedir . '/Subs-adkfunction.php');

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

// Using an pre-PHP 5.1 version?
Expand All @@ -84,9 +82,6 @@
// Clean the request variables.
cleanRequest();

//LoadSettings From Adk Portal
adkportalSettings();

// Seed the random generator?
if (empty($modSettings['rand_seed']) || mt_rand(1, 250) == 69)
smf_seed_generator();
Expand Down Expand Up @@ -148,13 +143,6 @@
// Load the current user's permissions....
loadPermissions();

//Adk Stand Alone mod??? Yeah nose true
adk_standAloneMode(true);

//Load your language or English Language
if(loadLanguage('Adk-Modifications') == false)
loadLanguage('Adk-Modifications','english');

// Load the current or SSI theme. (just use $ssi_theme = id_theme;)
loadTheme(isset($ssi_theme) ? (int) $ssi_theme : 0);

Expand Down
10 changes: 5 additions & 5 deletions SSI.php~
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @copyright 2011 Simple Machines
* @license http://www.simplemachines.org/about/smf/license.php BSD
*
* @version 2.0.17
* @version 2.0.18
*/

// Don't do anything if SMF is already loaded.
Expand All @@ -27,8 +27,8 @@ global $image_proxy_enabled, $image_proxy_secret, $image_proxy_maxsize;
global $auth_secret, $cookie_no_auth_secret;

// Remember the current configuration so it can be set back.
$ssi_magic_quotes_runtime = function_exists('get_magic_quotes_gpc') && get_magic_quotes_runtime();
if (function_exists('set_magic_quotes_runtime'))
$ssi_magic_quotes_runtime = version_compare(PHP_VERSION, '7.4.0') == -1 && function_exists('get_magic_quotes_gpc') && get_magic_quotes_runtime();
if (version_compare(PHP_VERSION, '7.4.0') == -1 && function_exists('set_magic_quotes_runtime'))
@set_magic_quotes_runtime(0);
$time_start = microtime();

Expand Down Expand Up @@ -200,7 +200,7 @@ elseif (basename($_SERVER['PHP_SELF']) == 'SSI.php')
die(sprintf($txt['ssi_not_direct'], $user_info['is_admin'] ? '\'' . addslashes(__FILE__) . '\'' : '\'SSI.php\''));

error_reporting($ssi_error_reporting);
if (function_exists('set_magic_quotes_runtime'))
if (version_compare(PHP_VERSION, '7.4.0') == -1 && function_exists('set_magic_quotes_runtime'))
@set_magic_quotes_runtime($ssi_magic_quotes_runtime);

return true;
Expand Down Expand Up @@ -1097,7 +1097,7 @@ function ssi_recentPoll($topPollInstead = false, $output_method = 'echo')
$smcFunc['db_free_result']($request);

// This user has voted on all the polls.
if ($row === false)
if (empty($row))
return array();

// If this is a guest who's voted we'll through ourselves to show poll to show the results.
Expand Down
Loading

0 comments on commit d24c748

Please sign in to comment.