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_official / html / modules / comments [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 26 Jul 2002 02:52:00 | postnuke_official/html/modules/comments | pninit.php,1.8,1.9 | Carl P. Corliss |
| various bugfixes | |||
Update of /home/cvsroot/postnuke_official/html/modules/comments
In directory ns7.hostnuke.net:/tmp/cvs-serv8259/html/modules/Comments
Modified Files:
pninit.php
Log Message:
various bugfixes
Index: pninit.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/modules/comments/pninit.php,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** pninit.php 2 Jul 2002 15:07:58 -0000 1.8
--- pninit.php 26 Jul 2002 02:51:58 -0000 1.9
***************
*** 27,30 ****
--- 27,32 ----
function comments_init()
{
+ include('pnadodb/pnTableDDL.php');
+
list($dbconn) = pnDBGetConn();
$pntable = pnDBGetTables();
***************
*** 39,47 ****
'pn_date' => array('type'=>'timestamp','null'=>FALSE, 'size'=>'YYYYMMDDHHMMSS'),
'pn_author' => array('type'=>'integer','null'=>FALSE,'size'=>'small','default'=>1),
! 'pn_title' => array('type'=>'varchar','null'=>FALSE, 'size'=100),
'pn_hostname' => array('type'=>'varchar','null'=>FALSE,'size'=>100),
'pn_comment' => array('type'=>'text','null'=>TRUE,'size'=>255),
! 'pn_lineage' => array('type'=>'varchar','null'=>TRUE,'size'=>((_COM_MAX_DEPTH * 9) - 1))
! )
if (!stristr($dbtype,'mysql')) {
--- 41,49 ----
'pn_date' => array('type'=>'timestamp','null'=>FALSE, 'size'=>'YYYYMMDDHHMMSS'),
'pn_author' => array('type'=>'integer','null'=>FALSE,'size'=>'small','default'=>1),
! 'pn_title' => array('type'=>'varchar','null'=>FALSE, 'size'=>100),
'pn_hostname' => array('type'=>'varchar','null'=>FALSE,'size'=>100),
'pn_comment' => array('type'=>'text','null'=>TRUE,'size'=>255),
! 'pn_lineage' => array('type'=>'varchar','null'=>TRUE,'size'=>((_COM_MAX_DEPTH * 9) - 1) )
! );
if (!stristr($dbtype,'mysql')) {
***************
*** 86,91 ****
// Set and Check that the Dynamic User Data
foreach($metadata as $data) {
! $result = pnModAPIFunc(pnModAPIFunc(�Modules�, �admin�, �register_user_var�, $data);
if (!isset($result) || $result == false) {
$msg = pnML('Could not initialize comments - could not set Dynamic User Data!');
--- 88,94 ----
// Set and Check that the Dynamic User Data
+ /*
foreach($metadata as $data) {
! $result = pnModAPIFunc('Modules', 'admin', 'register_user_var', $data);
if (!isset($result) || $result == false) {
$msg = pnML('Could not initialize comments - could not set Dynamic User Data!');
***************
*** 93,99 ****
new SystemException(__FILE__.'('.__LINE__.'): '.$msg));
comments_delete();
return;
! }
}
// Initialisation successful
return true;
--- 96,104 ----
new SystemException(__FILE__.'('.__LINE__.'): '.$msg));
comments_delete();
+ die("Could not create metadata!");
return;
! }
}
+ */
// Initialisation successful
return true;
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 |