Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_modules / articles [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
10 Aug 2002 11:43:11 | postnuke_modules/articles | pninit.php,1.21,1.22 | Mike |
get rid of articlescolumn + add user_exception |
Update of /home/cvsroot/postnuke_modules/articles In directory ns7.hostnuke.net:/tmp/cvs-serv31342 Modified Files: pninit.php Log Message: get rid of articlescolumn + add user_exception Index: pninit.php =================================================================== RCS file: /home/cvsroot/postnuke_modules/articles/pninit.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** pninit.php 7 Aug 2002 00:39:35 -0000 1.21 --- pninit.php 10 Aug 2002 11:43:09 -0000 1.22 *************** *** 33,37 **** if (!pnModAvailable('categories') || !pnModAPILoad('categories','admin')) { // Report failed initialisation attempt ! pnSessionSetVar('errormsg', 'This module needs the "categories" utility module to work properly. Please initialize and activate that module first...'); return false; } --- 33,39 ---- if (!pnModAvailable('categories') || !pnModAPILoad('categories','admin')) { // Report failed initialisation attempt ! $msg = pnML('This module needs the "categories" utility module to work properly. Please initialize and activate that module first...'); ! pnExceptionSet(PN_USER_EXCEPTION, 'UNABLE_TO_LOAD', ! new SystemException($msg)); return false; } *************** *** 61,77 **** // Create tables $articlestable = $pntable['articles']; - $articlescolumn = &$pntable['articles_column']; $sql = "CREATE TABLE $articlestable ( ! $articlescolumn[aid] INT(10) NOT NULL AUTO_INCREMENT, ! $articlescolumn[title] VARCHAR(255) NOT NULL DEFAULT '', ! $articlescolumn[summary] TEXT, ! $articlescolumn[body] TEXT, ! $articlescolumn[notes] TEXT, ! $articlescolumn[status] TINYINT(2) NOT NULL DEFAULT '0', ! $articlescolumn[authorid] INT(11) NOT NULL, ! $articlescolumn[pubdate] INT UNSIGNED NOT NULL, ! $articlescolumn[pubtypeid] INT(4) NOT NULL DEFAULT '1', ! $articlescolumn[pages] INT UNSIGNED NOT NULL, ! $articlescolumn[language] VARCHAR(30) NOT NULL DEFAULT '', PRIMARY KEY(pn_aid), KEY pn_authorid (pn_authorid), --- 63,78 ---- // Create tables $articlestable = $pntable['articles']; $sql = "CREATE TABLE $articlestable ( ! pn_aid INT(10) NOT NULL AUTO_INCREMENT, ! pn_title VARCHAR(255) NOT NULL DEFAULT '', ! pn_summary TEXT, ! pn_body TEXT, ! pn_notes TEXT, ! pn_status TINYINT(2) NOT NULL DEFAULT '0', ! pn_authorid INT(11) NOT NULL, ! pn_pubdate INT UNSIGNED NOT NULL, ! pn_pubtypeid INT(4) NOT NULL DEFAULT '1', ! pn_pages INT UNSIGNED NOT NULL, ! pn_language VARCHAR(30) NOT NULL DEFAULT '', PRIMARY KEY(pn_aid), KEY pn_authorid (pn_authorid), *************** *** 91,100 **** // Create tables $pubtypestable = $pntable['publication_types']; - $pubtypescolumn = &$pntable['publication_types_column']; $sql = "CREATE TABLE $pubtypestable ( ! $pubtypescolumn[pubtypeid] INT(4) NOT NULL AUTO_INCREMENT, ! $pubtypescolumn[pubtypename] VARCHAR(30) NOT NULL, ! $pubtypescolumn[pubtypedescr] VARCHAR(255) NOT NULL DEFAULT '', ! $pubtypescolumn[pubtypeconfig] TEXT, PRIMARY KEY(pn_pubtypeid))"; $dbconn->Execute($sql); --- 92,100 ---- // Create tables $pubtypestable = $pntable['publication_types']; $sql = "CREATE TABLE $pubtypestable ( ! pn_pubtypeid INT(4) NOT NULL AUTO_INCREMENT, ! pn_pubtypename VARCHAR(30) NOT NULL, ! pn_pubtypedescr VARCHAR(255) NOT NULL DEFAULT '', ! pn_pubtypeconfig TEXT, PRIMARY KEY(pn_pubtypeid))"; $dbconn->Execute($sql);
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |