diff --git a/public_html/fix-gl221.php b/public_html/fix-gl221.php deleted file mode 100644 index 80ca0e6d4..000000000 --- a/public_html/fix-gl221.php +++ /dev/null @@ -1,80 +0,0 @@ - $MESSAGE[30])); - COM_errorLog("Someone has tried to access a custom Geeklog Database Upgrade Routine {$_SERVER["SCRIPT_NAME"]} without proper permissions. User id: {$_USER['uid']}, Username: {$_USER['username']}, IP: " . $_SERVER['REMOTE_ADDR'],1); - COM_output($display); - exit; -} - -COM_errorLog("Someone has run a custom Geeklog Database Upgrade Routine {$_SERVER["SCRIPT_NAME"]} User id: {$_USER['uid']}, Username: {$_USER['username']}, IP: " . $_SERVER['REMOTE_ADDR'],1); - -$display = '

Custom Development Database Update

'; -$display .= '

Fix for Config Settings

'; -$display .= "

Starting Process

"; - -$display .= "

WORKING

"; - - - - -/* -require_once $_CONF['path_system'] . 'classes/config.class.php'; -$c = config::get_instance(); -$me = 'Core'; -// Add Structured Data Autotag usuage permissions -$c->add('autotag_permissions_structureddata', array(2, 2, 0, 0), '@select', 7, 41, 28, 1930, TRUE, $me, 37); - - -// Add `structureddata.autotag` feature -$sql = "INSERT INTO {$_TABLES['features']} (ft_name, ft_descr, ft_gl_core) VALUES ('structureddata.autotag', 'Can use the Structured Data Autotag', 1)"; -DB_query($sql, 1); -$ftId = DB_insertId(); - -// Get `Story Admin` group id -$grpId = DB_getItem($_TABLES['groups'], 'grp_id', "grp_name = 'Story Admin'"); - -// Give `structureddata.autotag` feature to `Story Admin` group -$sql = "INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ({$ftId}, {$grpId}) "; -DB_query($sql, 1); - - -// Give "structureddata.autotag" feature to Static Page Admin -$staticPageAdminId = DB_getItem($_TABLES['groups'], 'grp_id', "grp_name = 'Static Page Admin' "); -DB_query("INSERT INTO {$_TABLES['access']} (acc_ft_id, acc_grp_id) VALUES ({$ftId}, {$staticPageAdminId}) "); -*/ - -global $_TABLES; - -// Calculate number of pages for articles (that have [page_break] in body text) -$sql = "SELECT sid, bodytext FROM {$_TABLES['stories']} WHERE bodytext != ''"; -$result = DB_query($sql); -$numRows = DB_numRows($result); -for ($i = 0; $i < $numRows; $i++) { - $A = DB_fetchArray($result); - - $numpages = (count(explode('[page_break]', $A['bodytext']))); - - // Save new name - DB_query("UPDATE {$_TABLES['stories']} SET numpages = $numpages WHERE sid = '" . DB_escapeString($A['sid']) . "'"); -} - - - -COM_errorLog("Finished Upgrade Routine Successfully."); -$display .= "

Finished Process

"; - -CTL_clearCache(); - -$display .= '

The Geeklog Custom Development Database Update has completed.

-

Important: Remember to delete the script file ' . $_SERVER["SCRIPT_NAME"] . ' once this process has run successfully.

-

Please visit the Geeklog Support Forums if you have any questions or run into any problems.

'; - -$display = COM_createHTMLDocument($display, array('pagetitle' => $MESSAGE[40])); -COM_output($display); diff --git a/public_html/upgrade212.php b/public_html/upgrade212.php deleted file mode 100644 index 0e997d6ec..000000000 --- a/public_html/upgrade212.php +++ /dev/null @@ -1,28 +0,0 @@ -add('cache_mobile',TRUE,'select',2,10,1,230,TRUE, $me, 10); - -$c->add('google_login',0,'select',4,16,1,359,TRUE, $me, 16); -$c->add('google_consumer_key','','text',4,16,NULL,360,TRUE, $me, 16); -$c->add('google_consumer_secret','','text',4,16,NULL,361,TRUE, $me, 16); - -*/ - -$n = 'forum'; -$o = 59; -$t = 0; - -// Add Likes System config value -$c->add('likes_forum', 1, 'select', 0, 0, 41, $o, true, $n, $t); - - - -echo "Config Updated.";