You can subscribe to this list here.
2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(361) |
Oct
(65) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(798) |
Feb
(694) |
Mar
(586) |
Apr
(145) |
May
(24) |
Jun
(24) |
Jul
(56) |
Aug
(11) |
Sep
(138) |
Oct
(107) |
Nov
(58) |
Dec
(39) |
2004 |
Jan
(157) |
Feb
(24) |
Mar
(13) |
Apr
(14) |
May
(73) |
Jun
(106) |
Jul
(217) |
Aug
(91) |
Sep
(116) |
Oct
(357) |
Nov
(27) |
Dec
(272) |
2005 |
Jan
(97) |
Feb
(40) |
Mar
(167) |
Apr
(365) |
May
(344) |
Jun
(357) |
Jul
(407) |
Aug
(529) |
Sep
(204) |
Oct
(52) |
Nov
(80) |
Dec
(1) |
2006 |
Jan
(2) |
Feb
(1) |
Mar
(11) |
Apr
(112) |
May
(121) |
Jun
(86) |
Jul
(51) |
Aug
(48) |
Sep
(107) |
Oct
(20) |
Nov
(50) |
Dec
(11) |
2007 |
Jan
(7) |
Feb
(11) |
Mar
(8) |
Apr
(11) |
May
(2) |
Jun
(25) |
Jul
(67) |
Aug
(134) |
Sep
(54) |
Oct
(69) |
Nov
(10) |
Dec
(74) |
2008 |
Jan
(73) |
Feb
(81) |
Mar
(64) |
Apr
(98) |
May
(157) |
Jun
(68) |
Jul
(80) |
Aug
(108) |
Sep
(176) |
Oct
(107) |
Nov
(265) |
Dec
(60) |
2009 |
Jan
(149) |
Feb
(140) |
Mar
(195) |
Apr
(141) |
May
(53) |
Jun
(45) |
Jul
(98) |
Aug
(153) |
Sep
(160) |
Oct
(138) |
Nov
(139) |
Dec
(104) |
2010 |
Jan
(188) |
Feb
(259) |
Mar
(133) |
Apr
(104) |
May
(42) |
Jun
(121) |
Jul
(38) |
Aug
(223) |
Sep
(259) |
Oct
(255) |
Nov
(106) |
Dec
(157) |
2011 |
Jan
(202) |
Feb
(110) |
Mar
(261) |
Apr
(272) |
May
(218) |
Jun
(108) |
Jul
(141) |
Aug
(205) |
Sep
(326) |
Oct
(279) |
Nov
(368) |
Dec
(238) |
2012 |
Jan
(239) |
Feb
(3) |
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
2013 |
Jan
(1) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
(3) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: <ok...@us...> - 2003-01-05 18:27:43
|
Update of /cvsroot/xoops/xoops2/class In directory sc8-pr-cvs1:/tmp/cvs-serv18129/class Modified Files: module.textsanitizer.php Log Message: removed codes that arent used at all Index: module.textsanitizer.php =================================================================== RCS file: /cvsroot/xoops/xoops2/class/module.textsanitizer.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** module.textsanitizer.php 5 Jan 2003 14:21:38 -0000 1.2 --- module.textsanitizer.php 5 Jan 2003 18:27:40 -0000 1.3 *************** *** 141,149 **** } ! function &addSlashes($text, $force = false) { - if ($force) { - return addslashes($text); - } if (!get_magic_quotes_gpc()) { $text =& addslashes($text); --- 141,146 ---- } ! function &addSlashes($text) { if (!get_magic_quotes_gpc()) { $text =& addslashes($text); |
From: <w4...@us...> - 2003-01-05 18:26:06
|
Update of /cvsroot/xoops/xoops2/modules/xoopspoll In directory sc8-pr-cvs1:/tmp/cvs-serv17555/modules/xoopspoll Modified Files: index.php Log Message: clean of code. Index: index.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/xoopspoll/index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** index.php 2 Jan 2003 18:03:31 -0000 1.1 --- index.php 5 Jan 2003 18:26:03 -0000 1.2 *************** *** 48,52 **** include XOOPS_ROOT_PATH."/header.php"; make_cblock(); - echo "<br />"; }else{ $xoopsOption['show_rblock'] =0; --- 48,51 ---- *************** *** 77,95 **** $polls['pollVoters'] = $polls_arr[$i]->getVar("voters"); $polls['pollVotes'] = $polls_arr[$i]->getVar("votes"); - // echo "</td><td align='center'>".$polls_arr[$i]->getVar("voters")."</td><td align='center'>".$polls_arr[$i]->getVar("votes")."</td><td align='center'>".$end."</td><td align='right'><a href='pollresults.php?poll_id=".$polls_arr[$i]->getVar("poll_id")."'>"._PL_RESULTS."</a></td></tr>"; $xoopsTpl->append('polls', $polls); unset($polls); } - /* echo "</table>"; - echo "<table width='100%'><tr><td align='left'>"; - if ( $start > 0 ) { - $prev_start = ($start - $limit > 0) ? $start - $limit : 0; - echo "<a href='index.php?start=".$prev_start."&limit=".$limit."'>"._PL_PREV."</a>"; - } - echo "</td><td align='right'>"; - if ( $polls_count > $limit ) { - echo "<a href='index.php?start=".($start+$limit)."&limit=".$limit."'>"._PL_NEXT."</a>"; - } - echo "</td></tr></table>"; */ include XOOPS_ROOT_PATH."/footer.php"; } elseif ( !empty($HTTP_POST_VARS['option_id']) ) { --- 76,82 ---- *************** *** 160,164 **** $renderer = new XoopsPollRenderer($poll); $renderer->assignForm($xoopsTpl); - // $xoopsTpl->assign('viewpoll', $renderer->renderForm()); $xoopsTpl->assign('lang_vote' , _PL_VOTE); $xoopsTpl->assign('lang_results' , _PL_RESULTS); --- 147,150 ---- |
From: <ok...@us...> - 2003-01-05 18:25:51
|
Update of /cvsroot/xoops/xoops2/class In directory sc8-pr-cvs1:/tmp/cvs-serv17192/class Modified Files: xoopsblock.php xoopscomments.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: xoopsblock.php =================================================================== RCS file: /cvsroot/xoops/xoops2/class/xoopsblock.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xoopsblock.php 5 Jan 2003 13:55:47 -0000 1.2 --- xoopsblock.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 65,69 **** if ( !empty($id) ) { if ( is_array($id) ) { ! $this->setVars($id, false); } else { $this->load(intval($id)); --- 65,69 ---- if ( !empty($id) ) { if ( is_array($id) ) { ! $this->assignVars($id); } else { $this->load(intval($id)); *************** *** 76,80 **** $sql = 'SELECT * FROM '.$this->db->prefix('newblocks').' WHERE bid = '.$id; $arr = $this->db->fetchArray($this->db->query($sql)); ! $this->setVars($arr, false); } --- 76,80 ---- $sql = 'SELECT * FROM '.$this->db->prefix('newblocks').' WHERE bid = '.$id; $arr = $this->db->fetchArray($this->db->query($sql)); ! $this->assignVars($arr); } Index: xoopscomments.php =================================================================== RCS file: /cvsroot/xoops/xoops2/class/xoopscomments.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xoopscomments.php 5 Jan 2003 13:55:47 -0000 1.2 --- xoopscomments.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 61,65 **** if ( !empty($id) ) { if ( is_array($id) ) { ! $this->setVars($id, false); } else { $this->load(intval($id)); --- 61,65 ---- if ( !empty($id) ) { if ( is_array($id) ) { ! $this->assignVars($id); } else { $this->load(intval($id)); *************** *** 72,76 **** $sql = "SELECT * FROM ".$this->ctable." WHERE comment_id=".$id.""; $arr = $this->db->fetchArray($this->db->query($sql)); ! $this->setVars($arr, false); } --- 72,76 ---- $sql = "SELECT * FROM ".$this->ctable." WHERE comment_id=".$id.""; $arr = $this->db->fetchArray($this->db->query($sql)); ! $this->assignVars($arr); } |
From: <ok...@us...> - 2003-01-05 18:25:51
|
Update of /cvsroot/xoops/xoops2/kernel/block/object In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/block/object Modified Files: block.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: block.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/block/object/block.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** block.php 2 Jan 2003 16:18:06 -0000 1.1 --- block.php 5 Jan 2003 18:25:18 -0000 1.2 *************** *** 61,65 **** if (isset($id)) { if (is_array($id)) { ! $this->setVars($id, false); } else { $xoopsMF =& XoopsManagerFactory::getInstance(); --- 61,65 ---- if (isset($id)) { if (is_array($id)) { ! $this->assignVars($id); } else { $xoopsMF =& XoopsManagerFactory::getInstance(); |
From: <ok...@us...> - 2003-01-05 18:25:51
|
Update of /cvsroot/xoops/xoops2/kernel/avatar/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/avatar/manager Modified Files: avatar.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: avatar.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/avatar/manager/avatar.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** avatar.php 5 Jan 2003 13:55:47 -0000 1.2 --- avatar.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 78,82 **** if ($numrows == 1) { $avatar = new XoopsAvatar(); ! $avatar->setVars($this->db->fetchArray($result), false); return $avatar; } --- 78,82 ---- if ($numrows == 1) { $avatar = new XoopsAvatar(); ! $avatar->assignVars($this->db->fetchArray($result)); return $avatar; } *************** *** 145,149 **** while ($myrow = $this->db->fetchArray($result)) { $avatar = new XoopsAvatar(); ! $avatar->setVars($myrow, false); $avatar->setUserCount($myrow['count']); $ret[] =& $avatar; --- 145,149 ---- while ($myrow = $this->db->fetchArray($result)) { $avatar = new XoopsAvatar(); ! $avatar->assignVars($myrow); $avatar->setUserCount($myrow['count']); $ret[] =& $avatar; |
From: <ok...@us...> - 2003-01-05 18:25:51
|
Update of /cvsroot/xoops/xoops2/kernel/block/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/block/manager Modified Files: block.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: block.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/block/manager/block.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** block.php 5 Jan 2003 13:55:47 -0000 1.2 --- block.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 76,80 **** if ($numrows == 1) { $block = new XoopsBlock(); ! $block->setVars($this->db->fetchArray($result), false); return $block; } --- 76,80 ---- if ($numrows == 1) { $block = new XoopsBlock(); ! $block->assignVars($this->db->fetchArray($result)); return $block; } *************** *** 143,147 **** while ($myrow = $this->db->fetchArray($result)) { $block = new XoopsBlock(); ! $block->setVars($myrow, false); if (!$bidAsKey) { $ret[] =& $block; --- 143,147 ---- while ($myrow = $this->db->fetchArray($result)) { $block = new XoopsBlock(); ! $block->assignVars($myrow); if (!$bidAsKey) { $ret[] =& $block; |
From: <ok...@us...> - 2003-01-05 18:25:24
|
Update of /cvsroot/xoops/xoops2/modules/xoopsheadlines/class In directory sc8-pr-cvs1:/tmp/cvs-serv17192/modules/xoopsheadlines/class Modified Files: headline.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: headline.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/xoopsheadlines/class/headline.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** headline.php 5 Jan 2003 13:55:48 -0000 1.2 --- headline.php 5 Jan 2003 18:25:20 -0000 1.3 *************** *** 90,94 **** if ($numrows == 1) { $headline = new XoopsHeadline(); ! $headline->setVars($this->db->fetchArray($result), false); return $headline; } --- 90,94 ---- if ($numrows == 1) { $headline = new XoopsHeadline(); ! $headline->assignVars($this->db->fetchArray($result)); return $headline; } *************** *** 152,156 **** while ($myrow = $this->db->fetchArray($result)) { $headline = new XoopsHeadline(); ! $headline->setVars($myrow, false); $ret[] =& $headline; unset($headline); --- 152,156 ---- while ($myrow = $this->db->fetchArray($result)) { $headline = new XoopsHeadline(); ! $headline->assignVars($myrow); $ret[] =& $headline; unset($headline); |
From: <ok...@us...> - 2003-01-05 18:25:24
|
Update of /cvsroot/xoops/xoops2/modules/xoopspoll/class In directory sc8-pr-cvs1:/tmp/cvs-serv17192/modules/xoopspoll/class Modified Files: xoopspoll.php xoopspolllog.php xoopspolloption.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: xoopspoll.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/xoopspoll/class/xoopspoll.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xoopspoll.php 5 Jan 2003 13:55:48 -0000 1.2 --- xoopspoll.php 5 Jan 2003 18:25:20 -0000 1.3 *************** *** 53,57 **** if ( !empty($id) ) { if ( is_array($id) ) { ! $this->setVars($id, false); } else { $this->load(intval($id)); --- 53,57 ---- if ( !empty($id) ) { if ( is_array($id) ) { ! $this->assignVars($id); } else { $this->load(intval($id)); *************** *** 96,100 **** $sql = "SELECT * FROM ".$this->db->prefix("xoopspoll_desc")." WHERE poll_id=".$id.""; $myrow = $this->db->fetchArray($this->db->query($sql)); ! $this->setVars($myrow, false); } --- 96,100 ---- $sql = "SELECT * FROM ".$this->db->prefix("xoopspoll_desc")." WHERE poll_id=".$id.""; $myrow = $this->db->fetchArray($this->db->query($sql)); ! $this->assignVars($myrow); } Index: xoopspolllog.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/xoopspoll/class/xoopspolllog.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xoopspolllog.php 5 Jan 2003 13:55:48 -0000 1.2 --- xoopspolllog.php 5 Jan 2003 18:25:20 -0000 1.3 *************** *** 47,51 **** if ( !empty($id) ) { if ( is_array($id) ) { ! $this->setVars($id, false); } else { $this->load(intval($id)); --- 47,51 ---- if ( !empty($id) ) { if ( is_array($id) ) { ! $this->assignVars($id); } else { $this->load(intval($id)); *************** *** 78,82 **** $sql = "SELECT * FROM ".$this->db->prefix("xoopspoll_log")." WHERE log_id=".$id.""; $myrow = $this->db->fetchArray($this->db->query($sql)); ! $this->setVars($myrow, false); } --- 78,82 ---- $sql = "SELECT * FROM ".$this->db->prefix("xoopspoll_log")." WHERE log_id=".$id.""; $myrow = $this->db->fetchArray($this->db->query($sql)); ! $this->assignVars($myrow); } Index: xoopspolloption.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/xoopspoll/class/xoopspolloption.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** xoopspolloption.php 5 Jan 2003 13:55:48 -0000 1.2 --- xoopspolloption.php 5 Jan 2003 18:25:20 -0000 1.3 *************** *** 46,50 **** if ( !empty($id) ) { if ( is_array($id) ) { ! $this->setVars($id, false); } else { $this->load(intval($id)); --- 46,50 ---- if ( !empty($id) ) { if ( is_array($id) ) { ! $this->assignVars($id); } else { $this->load(intval($id)); *************** *** 84,88 **** $sql = "SELECT * FROM ".$this->db->prefix("xoopspoll_option")." WHERE option_id=".$id.""; $myrow = $this->db->fetchArray($this->db->query($sql)); ! $this->setVars($myrow); } --- 84,88 ---- $sql = "SELECT * FROM ".$this->db->prefix("xoopspoll_option")." WHERE option_id=".$id.""; $myrow = $this->db->fetchArray($this->db->query($sql)); ! $this->assignVars($myrow); } |
From: <ok...@us...> - 2003-01-05 18:25:24
|
Update of /cvsroot/xoops/xoops2/modules/xoopspartners/class In directory sc8-pr-cvs1:/tmp/cvs-serv17192/modules/xoopspartners/class Modified Files: partners.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: partners.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/xoopspartners/class/partners.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** partners.php 2 Jan 2003 19:45:54 -0000 1.1 --- partners.php 5 Jan 2003 18:25:20 -0000 1.2 *************** *** 48,52 **** if ( !empty($id) ) { if ( is_array($id) ) { ! $this->setVars($id, false); } else { $this->load(intval($id)); --- 48,52 ---- if ( !empty($id) ) { if ( is_array($id) ) { ! $this->assignVars($id); } else { $this->load(intval($id)); *************** *** 59,63 **** $sql = "SELECT * FROM ".$this->db->prefix("partners")." WHERE id=$id and status=1"; $myrow = $this->db->fetchArray($this->db->query($sql)); ! $this->setVars($myrow, false); } --- 59,63 ---- $sql = "SELECT * FROM ".$this->db->prefix("partners")." WHERE id=$id and status=1"; $myrow = $this->db->fetchArray($this->db->query($sql)); ! $this->assignVars($myrow); } |
From: <ok...@us...> - 2003-01-05 18:25:23
|
Update of /cvsroot/xoops/xoops2/kernel/themeset/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/themeset/manager Modified Files: themeset.php tplfile.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: themeset.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/themeset/manager/themeset.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** themeset.php 5 Jan 2003 13:55:48 -0000 1.2 --- themeset.php 5 Jan 2003 18:25:20 -0000 1.3 *************** *** 78,82 **** if ($numrows == 1) { $themeset = new XoopsThemeset(); ! $themeset->setVars($this->db->fetchArray($result), false); return $themeset; } --- 78,82 ---- if ($numrows == 1) { $themeset = new XoopsThemeset(); ! $themeset->assignVars($this->db->fetchArray($result)); return $themeset; } *************** *** 96,100 **** if ($numrows == 1) { $themeset = new XoopsThemeset(); ! $themeset->setVars($this->db->fetchArray($result), false); return $themeset; } --- 96,100 ---- if ($numrows == 1) { $themeset = new XoopsThemeset(); ! $themeset->assignVars($this->db->fetchArray($result)); return $themeset; } *************** *** 162,166 **** while ($myrow = $this->db->fetchArray($result)) { $themeset = new XoopsThemeset(); ! $themeset->setVars($myrow, false); $ret[] =& $themeset; unset($themeset); --- 162,166 ---- while ($myrow = $this->db->fetchArray($result)) { $themeset = new XoopsThemeset(); ! $themeset->assignVars($myrow); $ret[] =& $themeset; unset($themeset); Index: tplfile.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/themeset/manager/tplfile.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** tplfile.php 5 Jan 2003 13:55:48 -0000 1.2 --- tplfile.php 5 Jan 2003 18:25:20 -0000 1.3 *************** *** 82,86 **** if ($numrows == 1) { $tplfile = new XoopsTplfile(); ! $tplfile->setVars($this->db->fetchArray($result), false); return $tplfile; } --- 82,86 ---- if ($numrows == 1) { $tplfile = new XoopsTplfile(); ! $tplfile->assignVars($this->db->fetchArray($result)); return $tplfile; } *************** *** 100,104 **** } $myrow = $this->db->fetchArray($result); ! $tplfile->setVar('tpl_source', $myrow['tpl_source']); } } --- 100,104 ---- } $myrow = $this->db->fetchArray($result); ! $tplfile->assignVar('tpl_source'); } } *************** *** 185,189 **** while ($myrow = $this->db->fetchArray($result)) { $tplfile = new XoopsTplfile(); ! $tplfile->setVars($myrow, false); $ret[] =& $tplfile; unset($tplfile); --- 185,189 ---- while ($myrow = $this->db->fetchArray($result)) { $tplfile = new XoopsTplfile(); ! $tplfile->assignVars($myrow); $ret[] =& $tplfile; unset($tplfile); |
From: <ok...@us...> - 2003-01-05 18:25:23
|
Update of /cvsroot/xoops/xoops2/kernel/object/object In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/object/object Modified Files: object.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: object.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/object/object/object.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** object.php 5 Jan 2003 13:55:47 -0000 1.2 --- object.php 5 Jan 2003 18:25:19 -0000 1.3 *************** *** 136,147 **** // public // assign a value to a variable ! function setVar($key, $value, $changed = true) { if (!empty($key) && isset($value) && isset($this->vars[$key])) { $this->vars[$key]['value'] =& $value; - $this->vars[$key]['changed'] = $changed; - if ($changed) { - $this->setDirty(); - } } } --- 136,143 ---- // public // assign a value to a variable ! function assignVar($key, $value) { if (!empty($key) && isset($value) && isset($this->vars[$key])) { $this->vars[$key]['value'] =& $value; } } *************** *** 149,156 **** // private // assign values to multiple variables in a batch ! function setVars($vararr, $changed = true) { ! foreach ($vararr as $key => $value) { ! $this->setVar($key, $value, $changed); } } --- 145,173 ---- // private // assign values to multiple variables in a batch ! function assignVars($var_arr) { ! foreach ($var_arr as $key => $value) { ! $this->assignVar($key, $value); ! } ! } ! ! // public ! // assign a value to a variable ! function setVar($key, $value, $force_slash = false) ! { ! if (!empty($key) && isset($value) && isset($this->vars[$key])) { ! $this->vars[$key]['value'] =& $value; ! $this->vars[$key]['force_slash'] = $force_slash; ! $this->vars[$key]['changed'] = true; ! $this->setDirty(); ! } ! } ! ! // private ! // assign values to multiple variables in a batch ! function setVars($var_arr, $force_slash = false) ! { ! foreach ($var_arr as $key => $value) { ! $this->setVar($key, $value, $force_slash); } } *************** *** 285,295 **** $cleanv = addslashes($v['value']); } else { - if ($v['required'] && $v['value'] == '') { - $this->setErrors("$k is required."); - continue; - } $cleanv = is_string($v['value']) ? trim($v['value']) : $v['value']; switch ($v['data_type']) { case XOBJ_DTYPE_TXTBOX: if (isset($v['maxlength']) && strlen($cleanv) > intval($v['maxlength'])) { $this->setErrors("$k must be shorter than ".intval($v['maxlength'])." characters."); --- 302,312 ---- $cleanv = addslashes($v['value']); } else { $cleanv = is_string($v['value']) ? trim($v['value']) : $v['value']; switch ($v['data_type']) { case XOBJ_DTYPE_TXTBOX: + if ($v['required'] && $cleanv == '') { + $this->setErrors("$k is required."); + continue; + } if (isset($v['maxlength']) && strlen($cleanv) > intval($v['maxlength'])) { $this->setErrors("$k must be shorter than ".intval($v['maxlength'])." characters."); *************** *** 304,310 **** // } //} ! $cleanv =& $ts->addSlashes($ts->censorString($cleanv)); break; case XOBJ_DTYPE_TXTAREA: //foreach ($this->_filters as $filter) { // if (!isset($filterreg[$filter])) { --- 321,331 ---- // } //} ! $cleanv =& (!$v['force_slash']) ? $ts->addSlashes($ts->censorString($cleanv)) : addslashes($ts->censorString($cleanv)); break; case XOBJ_DTYPE_TXTAREA: + if ($v['required'] && $cleanv == '') { + $this->setErrors("$k is required."); + continue; + } //foreach ($this->_filters as $filter) { // if (!isset($filterreg[$filter])) { *************** *** 315,322 **** // } //} ! $cleanv =& $ts->addSlashes($ts->censorString($cleanv)); break; case XOBJ_DTYPE_SOURCE: ! $cleanv =& $ts->addSlashes($cleanv); break; case XOBJ_DTYPE_INT: --- 336,343 ---- // } //} ! $cleanv =& (!$v['force_slash']) ? $ts->addSlashes($ts->censorString($cleanv)) : addslashes($ts->censorString($cleanv)); break; case XOBJ_DTYPE_SOURCE: ! $cleanv =& (!$v['force_slash']) ? $ts->addSlashes($ts->censorString($cleanv)) : addslashes($ts->censorString($cleanv)); break; case XOBJ_DTYPE_INT: *************** *** 324,338 **** break; case XOBJ_DTYPE_EMAIL: if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i",$cleanv)) { $this->setErrors("Invalid Email"); continue; } ! $cleanv =& $ts->addSlashes($ts->censorString($cleanv)); break; case XOBJ_DTYPE_URL: if ($cleanv != '' && !preg_match("/^http[s]*:\/\//i", $cleanv)) { $cleanv = 'http://' . $cleanv; } ! $cleanv =& $ts->addSlashes($ts->censorString($cleanv)); break; case XOBJ_DTYPE_ARRAY: --- 345,367 ---- break; case XOBJ_DTYPE_EMAIL: + if ($v['required'] && $cleanv == '') { + $this->setErrors("$k is required."); + continue; + } if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i",$cleanv)) { $this->setErrors("Invalid Email"); continue; } ! $cleanv =& (!$v['force_slash']) ? $ts->addSlashes($ts->censorString($cleanv)) : addslashes($ts->censorString($cleanv)); break; case XOBJ_DTYPE_URL: + if ($v['required'] && $cleanv == '') { + $this->setErrors("$k is required."); + continue; + } if ($cleanv != '' && !preg_match("/^http[s]*:\/\//i", $cleanv)) { $cleanv = 'http://' . $cleanv; } ! $cleanv =& (!$v['force_slash']) ? $ts->addSlashes($ts->censorString($cleanv)) : addslashes($ts->censorString($cleanv)); break; case XOBJ_DTYPE_ARRAY: |
From: <ok...@us...> - 2003-01-05 18:25:23
|
Update of /cvsroot/xoops/xoops2/kernel/member/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/member/manager Modified Files: group.php membership.php user.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: group.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/member/manager/group.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** group.php 5 Jan 2003 13:55:47 -0000 1.2 --- group.php 5 Jan 2003 18:25:19 -0000 1.3 *************** *** 77,81 **** if ($numrows == 1) { $group = new XoopsGroup(); ! $group->setVars($this->db->fetchArray($result), false); return $group; } --- 77,81 ---- if ($numrows == 1) { $group = new XoopsGroup(); ! $group->assignVars($this->db->fetchArray($result)); return $group; } *************** *** 141,145 **** while ($myrow = $this->db->fetchArray($result)) { $group = new XoopsGroup(); ! $group->setVars($myrow, false); $ret[] =& $group; unset($group); --- 141,145 ---- while ($myrow = $this->db->fetchArray($result)) { $group = new XoopsGroup(); ! $group->assignVars($myrow); $ret[] =& $group; unset($group); Index: membership.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/member/manager/membership.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** membership.php 5 Jan 2003 13:55:47 -0000 1.2 --- membership.php 5 Jan 2003 18:25:19 -0000 1.3 *************** *** 77,81 **** if ($numrows == 1) { $mship = new XoopsMembership(); ! $mship->setVars($this->db->fetchArray($result), false); return $mship; } --- 77,81 ---- if ($numrows == 1) { $mship = new XoopsMembership(); ! $mship->assignVars($this->db->fetchArray($result)); return $mship; } *************** *** 141,145 **** while ($myrow = $this->db->fetchArray($result)) { $mship = new XoopsMembership(); ! $mship->setVars($myrow, false); $ret[] =& $mship; unset($mship); --- 141,145 ---- while ($myrow = $this->db->fetchArray($result)) { $mship = new XoopsMembership(); ! $mship->assignVars($myrow); $ret[] =& $mship; unset($mship); *************** *** 192,196 **** $gman = $this->mf->get(MANAGER_GROUP); $group =& $gman->create(false); ! $group->setVars($myrow, false); $ret[] =& $group; unset($group); --- 192,196 ---- $gman = $this->mf->get(MANAGER_GROUP); $group =& $gman->create(false); ! $group->assignVars($myrow); $ret[] =& $group; unset($group); *************** *** 218,222 **** $uman = $this->mf->get(MANAGER_USER); $user =& $uman->create(false); ! $user->setVars($myrow, false); $ret[] =& $user; unset($user); --- 218,222 ---- $uman = $this->mf->get(MANAGER_USER); $user =& $uman->create(false); ! $user->assignVars($myrow); $ret[] =& $user; unset($user); Index: user.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/member/manager/user.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** user.php 5 Jan 2003 15:45:09 -0000 1.4 --- user.php 5 Jan 2003 18:25:19 -0000 1.5 *************** *** 77,81 **** if ($numrows == 1) { $user = new XoopsUser(); ! $user->setVars($this->db->fetchArray($result), false); return $user; } --- 77,81 ---- if ($numrows == 1) { $user = new XoopsUser(); ! $user->assignVars($this->db->fetchArray($result)); return $user; } *************** *** 154,158 **** while ($myrow = $this->db->fetchArray($result)) { $user = new XoopsUser(); ! $user->setVars($myrow, false); $ret[] =& $user; unset($user); --- 154,158 ---- while ($myrow = $this->db->fetchArray($result)) { $user = new XoopsUser(); ! $user->assignVars($myrow); $ret[] =& $user; unset($user); |
From: <ok...@us...> - 2003-01-05 18:25:23
|
Update of /cvsroot/xoops/xoops2/kernel/module/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/module/manager Modified Files: module.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: module.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/module/manager/module.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** module.php 5 Jan 2003 13:55:47 -0000 1.2 --- module.php 5 Jan 2003 18:25:19 -0000 1.3 *************** *** 79,83 **** $module = new XoopsModule(); $myrow = $this->db->fetchArray($result); ! $module->setVars($myrow, false); return $module; } --- 79,83 ---- $module = new XoopsModule(); $myrow = $this->db->fetchArray($result); ! $module->assignVars($myrow); return $module; } *************** *** 96,100 **** $module = new XoopsModule(); $myrow = $this->db->fetchArray($result); ! $module->setVars($myrow, false); return $module; } --- 96,100 ---- $module = new XoopsModule(); $myrow = $this->db->fetchArray($result); ! $module->assignVars($myrow); return $module; } *************** *** 164,168 **** while ($myrow = $this->db->fetchArray($result)) { $module = new XoopsModule(); ! $module->setVars($myrow, false); $ret[] =& $module; unset($module); --- 164,168 ---- while ($myrow = $this->db->fetchArray($result)) { $module = new XoopsModule(); ! $module->assignVars($myrow); $ret[] =& $module; unset($module); |
From: <ok...@us...> - 2003-01-05 18:25:23
|
Update of /cvsroot/xoops/xoops2/kernel/module/object In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/module/object Modified Files: module.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: module.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/module/object/module.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** module.php 2 Jan 2003 16:35:16 -0000 1.1 --- module.php 5 Jan 2003 18:25:19 -0000 1.2 *************** *** 58,64 **** $this->loadInfo($dirname); } ! $this->setVar('name', addslashes($this->modinfo['name'])); $this->setVar('version', 100 * $this->modinfo['version']); ! $this->setVar('dirname', addslashes($this->modinfo['dirname'])); $hasmain = (isset($this->modinfo['hasMain']) && $this->modinfo['hasMain'] == 1) ? 1 : 0; $hasadmin = (isset($this->modinfo['hasAdmin']) && $this->modinfo['hasAdmin'] == 1) ? 1 : 0; --- 58,64 ---- $this->loadInfo($dirname); } ! $this->setVar('name', $this->modinfo['name'], true); $this->setVar('version', 100 * $this->modinfo['version']); ! $this->setVar('dirname', $this->modinfo['dirname'], true); $hasmain = (isset($this->modinfo['hasMain']) && $this->modinfo['hasMain'] == 1) ? 1 : 0; $hasadmin = (isset($this->modinfo['hasAdmin']) && $this->modinfo['hasAdmin'] == 1) ? 1 : 0; |
From: <ok...@us...> - 2003-01-05 18:25:23
|
Update of /cvsroot/xoops/xoops2/kernel/member/object In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/member/object Modified Files: user.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: user.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/member/object/user.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** user.php 5 Jan 2003 15:45:09 -0000 1.2 --- user.php 5 Jan 2003 18:25:19 -0000 1.3 *************** *** 72,81 **** if (isset($id)) { if (is_array($id)) { ! $this->setVars($id, false); } else { $member_handler =& xoops_gethandler('member'); $user =& $member_handler->getUser($id); foreach ($user->vars as $k => $v) { ! $this->setVar($k, $v['value'], false); } } --- 72,81 ---- if (isset($id)) { if (is_array($id)) { ! $this->assignVars($id); } else { $member_handler =& xoops_gethandler('member'); $user =& $member_handler->getUser($id); foreach ($user->vars as $k => $v) { ! $this->assignVar($k, $v['value']); } } |
From: <ok...@us...> - 2003-01-05 18:25:23
|
Update of /cvsroot/xoops/xoops2/kernel/privmessage/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/privmessage/manager Modified Files: privmessage.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: privmessage.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/privmessage/manager/privmessage.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** privmessage.php 5 Jan 2003 13:55:48 -0000 1.2 --- privmessage.php 5 Jan 2003 18:25:19 -0000 1.3 *************** *** 79,83 **** if ($numrows == 1) { $pm = new XoopsPrivMessage(); ! $pm->setVars($this->db->fetchArray($result), false); return $pm; } --- 79,83 ---- if ($numrows == 1) { $pm = new XoopsPrivMessage(); ! $pm->assignVars($this->db->fetchArray($result)); return $pm; } *************** *** 144,148 **** while ($myrow = $this->db->fetchArray($result)) { $pm = new XoopsPrivMessage(); ! $pm->setVars($myrow, false); $ret[] =& $pm; unset($pm); --- 144,148 ---- while ($myrow = $this->db->fetchArray($result)) { $pm = new XoopsPrivMessage(); ! $pm->assignVars($myrow); $ret[] =& $pm; unset($pm); |
From: <ok...@us...> - 2003-01-05 18:25:23
|
Update of /cvsroot/xoops/xoops2/kernel/permission/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/permission/manager Modified Files: groupperm.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: groupperm.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/permission/manager/groupperm.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** groupperm.php 5 Jan 2003 13:55:47 -0000 1.2 --- groupperm.php 5 Jan 2003 18:25:19 -0000 1.3 *************** *** 71,75 **** if ( $numrows == 1 ) { $perm = new XoopsGroupPerm(); ! $perm->setVars($this->db->fetchArray($result), false); $perm->setPermName($this->permName); return $perm; --- 71,75 ---- if ( $numrows == 1 ) { $perm = new XoopsGroupPerm(); ! $perm->assignVars($this->db->fetchArray($result)); $perm->setPermName($this->permName); return $perm; *************** *** 136,140 **** while ($myrow = $this->db->fetchArray($result)) { $perm = new XoopsGroupPerm(); ! $perm->setVars($myrow, false); $perm->setPermName($this->permName); $ret[] =& $perm; --- 136,140 ---- while ($myrow = $this->db->fetchArray($result)) { $perm = new XoopsGroupPerm(); ! $perm->assignVars($myrow); $perm->setPermName($this->permName); $ret[] =& $perm; |
From: <ok...@us...> - 2003-01-05 18:25:22
|
Update of /cvsroot/xoops/xoops2/kernel/config/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/config/manager Modified Files: config.php configcategory.php configoption.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: config.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/config/manager/config.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** config.php 5 Jan 2003 13:55:47 -0000 1.2 --- config.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 82,86 **** $myrow = $this->db->fetchArray($result); $config = new XoopsConfig(); ! $config->setVars($myrow); return $config; } --- 82,86 ---- $myrow = $this->db->fetchArray($result); $config = new XoopsConfig(); ! $config->assignVars($myrow); return $config; } *************** *** 147,151 **** while ($myrow = $this->db->fetchArray($result)) { $config = new XoopsConfig(); ! $config->setVars($myrow); $ret[] =& $config; unset($config); --- 147,151 ---- while ($myrow = $this->db->fetchArray($result)) { $config = new XoopsConfig(); ! $config->assignVars($myrow); $ret[] =& $config; unset($config); Index: configcategory.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/config/manager/configcategory.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** configcategory.php 5 Jan 2003 13:55:47 -0000 1.2 --- configcategory.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 80,84 **** if ($numrows == 1) { $confcat = new XoopsConfigCategory(); ! $confcat->setVars($this->db->fetchArray($result), false); return $confcat; } --- 80,84 ---- if ($numrows == 1) { $confcat = new XoopsConfigCategory(); ! $confcat->assignVars($this->db->fetchArray($result), false); return $confcat; } *************** *** 146,150 **** while ($myrow = $this->db->fetchArray($result)) { $confcat = new XoopsConfigCategory(); ! $confcat->setVars($myrow, false); $ret[] =& $confcat; unset($confcat); --- 146,150 ---- while ($myrow = $this->db->fetchArray($result)) { $confcat = new XoopsConfigCategory(); ! $confcat->assignVars($myrow, false); $ret[] =& $confcat; unset($confcat); Index: configoption.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/config/manager/configoption.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** configoption.php 5 Jan 2003 13:55:47 -0000 1.2 --- configoption.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 79,83 **** if ($numrows == 1) { $confoption = new XoopsConfigOption(); ! $confoption->setVars($this->db->fetchArray($result), false); return $confoption; } --- 79,83 ---- if ($numrows == 1) { $confoption = new XoopsConfigOption(); ! $confoption->assignVars($this->db->fetchArray($result)); return $confoption; } *************** *** 145,149 **** while ($myrow = $this->db->fetchArray($result)) { $confoption = new XoopsConfigOption(); ! $confoption->setVars($myrow, false); $ret[] =& $confoption; unset($confoption); --- 145,149 ---- while ($myrow = $this->db->fetchArray($result)) { $confoption = new XoopsConfigOption(); ! $confoption->assignVars($myrow); $ret[] =& $confoption; unset($confoption); |
From: <ok...@us...> - 2003-01-05 18:25:22
|
Update of /cvsroot/xoops/xoops2/kernel In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel Modified Files: managerfactory.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: managerfactory.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/managerfactory.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** managerfactory.php 2 Jan 2003 15:51:12 -0000 1.1 --- managerfactory.php 5 Jan 2003 18:25:18 -0000 1.2 *************** *** 84,91 **** // return XoopsCategoryManager::instance($this->db, $this); // break; ! // case MANAGER_COMMENT: ! // include_once XOOPS_ROOT_PATH.'/modules/xoopssections/class/comment.php'; ! // return XoopsCommentManager::instance($this->db, $this); ! // break; // case MANAGER_ITEM: // include_once XOOPS_ROOT_PATH.'/modules/xoopssections/class/item.php'; --- 84,91 ---- // return XoopsCategoryManager::instance($this->db, $this); // break; ! case MANAGER_COMMENT: ! include_once XOOPS_ROOT_PATH.'/kernel/comment/manager/comment.php'; ! return XoopsCommentManager::instance($this->db, $this); ! break; // case MANAGER_ITEM: // include_once XOOPS_ROOT_PATH.'/modules/xoopssections/class/item.php'; |
From: <ok...@us...> - 2003-01-05 18:25:22
|
Update of /cvsroot/xoops/xoops2/kernel/image/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/image/manager Modified Files: image.php imgcat.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: image.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/image/manager/image.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** image.php 5 Jan 2003 13:55:47 -0000 1.2 --- image.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 79,83 **** if ($numrows == 1) { $image = new XoopsImage(); ! $image->setVars($this->db->fetchArray($result), false); return $image; } --- 79,83 ---- if ($numrows == 1) { $image = new XoopsImage(); ! $image->assignVars($this->db->fetchArray($result)); return $image; } *************** *** 169,173 **** while ($myrow = $this->db->fetchArray($result)) { $image = new XoopsImage(); ! $image->setVars($myrow, false); $ret[] =& $image; unset($image); --- 169,173 ---- while ($myrow = $this->db->fetchArray($result)) { $image = new XoopsImage(); ! $image->assignVars($myrow); $ret[] =& $image; unset($image); Index: imgcat.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/image/manager/imgcat.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** imgcat.php 5 Jan 2003 13:55:47 -0000 1.2 --- imgcat.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 77,81 **** if ($numrows == 1) { $imgcat = new XoopsImageCategory(); ! $imgcat->setVars($this->db->fetchArray($result), false); return $imgcat; } --- 77,81 ---- if ($numrows == 1) { $imgcat = new XoopsImageCategory(); ! $imgcat->assignVars($this->db->fetchArray($result)); return $imgcat; } *************** *** 141,145 **** while ($myrow = $this->db->fetchArray($result)) { $imgcat = new XoopsImageCategory(); ! $imgcat->setVars($myrow, false); $ret[] =& $imgcat; unset($imgcat); --- 141,145 ---- while ($myrow = $this->db->fetchArray($result)) { $imgcat = new XoopsImageCategory(); ! $imgcat->assignVars($myrow); $ret[] =& $imgcat; unset($imgcat); |
From: <ok...@us...> - 2003-01-05 18:25:22
|
Update of /cvsroot/xoops/xoops2/kernel/imageset/manager In directory sc8-pr-cvs1:/tmp/cvs-serv17192/kernel/imageset/manager Modified Files: imageset.php imagesetimg.php Log Message: added assignvar() and assignVars() to XoopsObject and its child classes Index: imageset.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/imageset/manager/imageset.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** imageset.php 5 Jan 2003 13:55:47 -0000 1.2 --- imageset.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 77,81 **** if ($numrows == 1) { $imgset = new XoopsImgset(); ! $imgset->setVars($this->db->fetchArray($result), false); return $imgset; } --- 77,81 ---- if ($numrows == 1) { $imgset = new XoopsImgset(); ! $imgset->assignVars($this->db->fetchArray($result)); return $imgset; } *************** *** 143,147 **** while ($myrow = $this->db->fetchArray($result)) { $imgset = new XoopsImgset(); ! $imgset->setVars($myrow, false); $ret[] =& $imgset; unset($imgset); --- 143,147 ---- while ($myrow = $this->db->fetchArray($result)) { $imgset = new XoopsImgset(); ! $imgset->assignVars($myrow); $ret[] =& $imgset; unset($imgset); Index: imagesetimg.php =================================================================== RCS file: /cvsroot/xoops/xoops2/kernel/imageset/manager/imagesetimg.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** imagesetimg.php 5 Jan 2003 13:55:47 -0000 1.2 --- imagesetimg.php 5 Jan 2003 18:25:18 -0000 1.3 *************** *** 78,82 **** if ($numrows == 1) { $imgsetimg = new XoopsImgsetImage(); ! $imgsetimg->setVars($this->db->fetchArray($result), false); return $imgsetimg; } --- 78,82 ---- if ($numrows == 1) { $imgsetimg = new XoopsImgsetImage(); ! $imgsetimg->assignVars($this->db->fetchArray($result)); return $imgsetimg; } *************** *** 143,147 **** while ($myrow = $this->db->fetchArray($result)) { $imgsetimg = new XoopsImgsetImage(); ! $imgsetimg->setVars($myrow, false); $ret[] =& $imgsetimg; unset($imgsetimg); --- 143,147 ---- while ($myrow = $this->db->fetchArray($result)) { $imgsetimg = new XoopsImgsetImage(); ! $imgsetimg->assignVars($myrow); $ret[] =& $imgsetimg; unset($imgsetimg); |
From: <w4...@us...> - 2003-01-05 18:20:51
|
Update of /cvsroot/xoops/xoops2 In directory sc8-pr-cvs1:/tmp/cvs-serv15673 Modified Files: misc.php Log Message: recomend us link for anonymous users. Index: misc.php =================================================================== RCS file: /cvsroot/xoops/xoops2/misc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** misc.php 2 Jan 2003 14:56:45 -0000 1.1 --- misc.php 5 Jan 2003 18:20:46 -0000 1.2 *************** *** 112,116 **** $fmail = ""; } else { ! break; } printCheckForm(); --- 112,119 ---- $fmail = ""; } else { ! $yname = ""; ! $ymail = ""; ! $fname = ""; ! $fmail = ""; } printCheckForm(); *************** *** 122,126 **** <input type='hidden' name='type' value='friend' />\n"; echo _YOURNAMEC."</td><td class='even'><input type='text' name='yname' value='$yname' id='yname' /></td></tr> ! <tr><td class='head'>"._YOUREMAILC."</td><td class='odd'>".$ymail."</td></tr> <tr><td class='head'>"._FRIENDNAMEC."</td><td class='even'><input type='text' name='fname' value='$fname' id='fname' /></td></tr> <tr><td class='head'>"._FRIENDEMAILC."</td><td class='odd'><input type='text' name='fmail' value='$fmail' id='fmail' /></td></tr> --- 125,129 ---- <input type='hidden' name='type' value='friend' />\n"; echo _YOURNAMEC."</td><td class='even'><input type='text' name='yname' value='$yname' id='yname' /></td></tr> ! <tr><td class='head'>"._YOUREMAILC."</td><td class='odd'><input type='text' name='ymail' value='".$ymail."' id='ymail' /></td></tr> <tr><td class='head'>"._FRIENDNAMEC."</td><td class='even'><input type='text' name='fname' value='$fname' id='fname' /></td></tr> <tr><td class='head'>"._FRIENDEMAILC."</td><td class='odd'><input type='text' name='fmail' value='$fmail' id='fmail' /></td></tr> *************** *** 132,138 **** $ymail = $xoopsUser->getVar("email"); } else { ! break; } ! if ( !isset($HTTP_POST_VARS['yname']) || trim($HTTP_POST_VARS['yname']) == "" || !isset($HTTP_POST_VARS['fname']) || trim($HTTP_POST_VARS['fname']) == "" || !isset($HTTP_POST_VARS['fmail']) || trim($HTTP_POST_VARS['fmail']) == '' ) { redirect_header(XOOPS_URL."/misc.php?action=showpopups&type=friend&op=sendform",2,_NEEDINFO); exit(); --- 135,141 ---- $ymail = $xoopsUser->getVar("email"); } else { ! $ymail = trim($HTTP_POST_VARS['ymail']); } ! if ( !isset($HTTP_POST_VARS['yname']) || trim($HTTP_POST_VARS['yname']) == "" || !isset($ymail) || !isset($HTTP_POST_VARS['fname']) || trim($HTTP_POST_VARS['fname']) == "" || !isset($HTTP_POST_VARS['fmail']) || trim($HTTP_POST_VARS['fmail']) == '' ) { redirect_header(XOOPS_URL."/misc.php?action=showpopups&type=friend&op=sendform",2,_NEEDINFO); exit(); *************** *** 141,145 **** $fname = trim($HTTP_POST_VARS['fname']); $fmail = trim($HTTP_POST_VARS['fmail']); ! if (!checkEmail($fmail)) { $errormessage = _INVALIDEMAIL1."<br />"._INVALIDEMAIL2.""; redirect_header(XOOPS_URL."/misc.php?action=showpopups&type=friend&op=sendform",2,$errormessage); --- 144,148 ---- $fname = trim($HTTP_POST_VARS['fname']); $fmail = trim($HTTP_POST_VARS['fmail']); ! if (!checkEmail($fmail) or !checkEmail($ymail)) { $errormessage = _INVALIDEMAIL1."<br />"._INVALIDEMAIL2.""; redirect_header(XOOPS_URL."/misc.php?action=showpopups&type=friend&op=sendform",2,$errormessage); *************** *** 154,158 **** $xoopsMailer->assign("FRIEND_NAME", $fname); $xoopsMailer->setToEmails($fmail); ! $xoopsMailer->setFromEmail($xoopsUser->getVar("email")); $xoopsMailer->setFromName($yname); $xoopsMailer->setSubject(sprintf(_INTSITE,$xoopsConfig['sitename'])); --- 157,161 ---- $xoopsMailer->assign("FRIEND_NAME", $fname); $xoopsMailer->setToEmails($fmail); ! $xoopsMailer->setFromEmail($ymail); $xoopsMailer->setFromName($yname); $xoopsMailer->setSubject(sprintf(_INTSITE,$xoopsConfig['sitename'])); |
From: <w4...@us...> - 2003-01-05 18:20:51
|
Update of /cvsroot/xoops/xoops2/modules/system/blocks In directory sc8-pr-cvs1:/tmp/cvs-serv15673/modules/system/blocks Modified Files: system_blocks.php Log Message: recomend us link for anonymous users. Index: system_blocks.php =================================================================== RCS file: /cvsroot/xoops/xoops2/modules/system/blocks/system_blocks.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** system_blocks.php 5 Jan 2003 15:31:28 -0000 1.2 --- system_blocks.php 5 Jan 2003 18:20:47 -0000 1.3 *************** *** 278,286 **** } $block['logourl'] = XOOPS_URL.'/images/'.$options[2]; ! if ($xoopsUser != '') { ! $block['recommendlink'] = "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=friend&op=sendform&t=".time()."','friend',".$options[0].",".$options[1].")\">"._MB_SYSTEM_RECO."</a>"; ! } else { ! $block['recommendlink'] = ''; ! } return $block; } --- 278,282 ---- } $block['logourl'] = XOOPS_URL.'/images/'.$options[2]; ! $block['recommendlink'] = "<a href=\"javascript:openWithSelfMain('".XOOPS_URL."/misc.php?action=showpopups&type=friend&op=sendform&t=".time()."','friend',".$options[0].",".$options[1].")\">"._MB_SYSTEM_RECO."</a>"; return $block; } |
From: <w4...@us...> - 2003-01-05 16:36:46
|
Update of /cvsroot/xoops/xoops2/install/language/french In directory sc8-pr-cvs1:/tmp/cvs-serv14598/install/language/french Modified Files: install.php Log Message: fixed the bug 0000311 Index: install.php =================================================================== RCS file: /cvsroot/xoops/xoops2/install/language/french/install.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install.php 3 Jan 2003 16:53:25 -0000 1.2 --- install.php 5 Jan 2003 16:36:43 -0000 1.3 *************** *** 57,61 **** define("_INSTALL_L31","Impossible de créer la base de données"); define("_INSTALL_L32","Installation Terminée"); ! define("_INSTALL_L33","Cliquez <a href='index.php'>ici</a> pour atteidre la page d accueil de votre site."); define("_INSTALL_L35","Si vous avez des erreurs, merci de contacter le team de développement sur <a href='http://www.frxoops.org/'>FRXOOPS.org</a>"); define("_INSTALL_L36","SVP choisissez votre nom d'administrateur et votre mot de passe et cliquez sur le bouton ci-dessous pour lancer la création des tables."); --- 57,61 ---- define("_INSTALL_L31","Impossible de créer la base de données"); define("_INSTALL_L32","Installation Terminée"); ! define("_INSTALL_L33","Cliquez <a href='../index.php'>ici</a> pour atteidre la page d accueil de votre site."); define("_INSTALL_L35","Si vous avez des erreurs, merci de contacter le team de développement sur <a href='http://www.frxoops.org/'>FRXOOPS.org</a>"); define("_INSTALL_L36","SVP choisissez votre nom d'administrateur et votre mot de passe et cliquez sur le bouton ci-dessous pour lancer la création des tables."); |
From: <ok...@us...> - 2003-01-05 16:33:27
|
Update of /cvsroot/xoops/xoops2 In directory sc8-pr-cvs1:/tmp/cvs-serv13630 Modified Files: header.php Log Message: added new global template variable xoops_userid Index: header.php =================================================================== RCS file: /cvsroot/xoops/xoops2/header.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** header.php 2 Jan 2003 14:56:45 -0000 1.1 --- header.php 5 Jan 2003 16:33:24 -0000 1.2 *************** *** 97,100 **** --- 97,101 ---- if ($xoopsUser != '') { $xoopsTpl->assign('xoops_isuser', true); + $xoopsTpl->assign('xoops_userid', $xoopsUser->getVar('uid')); if ($xoopsUser->isAdmin()) { $xoopsTpl->assign('xoops_isadmin', true); |