forked from yclas/noahsclassifieds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
updateinfo-4.1.1.php
25 lines (17 loc) · 1.16 KB
/
updateinfo-4.1.1.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
$nVersion = "4.1.1";
defined('_NOAH') or die('Restricted access');
if( !class_exists("GlobalStat") ) die();
$globalStat = new GlobalStat;
if( $globalStat->instver<$nVersion )
{
executeQueryForUpdate("INSERT INTO @notification (`id`, `cc`, `title`, `subject`, `body`, `active`, `langDependent`) VALUES (111, '', 'Ad Flagged', 'Ad Flagged', 'notifications/email_flagged.html', 1, 1);", __FILE__, __LINE__);
alterDatabaseColumns("settings", "ADD", array("`captchaType` INT( 11 ) NOT NULL DEFAULT '0'",
"`recaptchaPrivateKey` varchar(255) NOT NULL",
"`recaptchaPublicKey` varchar(255) NOT NULL",
"`displayFlaggedLink` INT( 11 ) NOT NULL DEFAULT '0'"), __FILE__, __LINE__);
alterDatabaseColumns("category", "ADD", array("`displayFlaggedLink` INT( 11 ) NOT NULL DEFAULT '0'"), __FILE__, __LINE__);
alterDatabaseColumns("customfield", "ADD", array("`useMarkitupSimple` INT( 11 ) NOT NULL DEFAULT '0'"), __FILE__, __LINE__);
updateGlobalstatAndFooter($nVersion);
}
?>