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 / ns-addstory [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
04 Aug 2002 21:43:04 | postnuke_official/html/modules/ns-addstory | Version.php,1.5.2.1,1.5.2.2 addstory_functions.php,1.17.2.1,1.17.2.2 | John Cox |
added new admin |
Update of /home/cvsroot/postnuke_official/html/modules/ns-addstory In directory ns7.hostnuke.net:/tmp/cvs-serv23421/html/modules/ns-addstory Modified Files: Tag: PostNuke_71 Version.php addstory_functions.php Log Message: added new admin Index: Version.php =================================================================== RCS file: /home/cvsroot/postnuke_official/html/modules/ns-addstory/Attic/Version.php,v retrieving revision 1.5.2.1 retrieving revision 1.5.2.2 diff -C2 -d -r1.5.2.1 -r1.5.2.2 Index: addstory_functions.php =================================================================== RCS file: /home/cvsroot/postnuke_official/html/modules/ns-addstory/Attic/addstory_functions.php,v retrieving revision 1.17.2.1 retrieving revision 1.17.2.2 diff -C2 -d -r1.17.2.1 -r1.17.2.2 *** addstory_functions.php 29 Jul 2002 12:25:51 -0000 1.17.2.1 --- addstory_functions.php 4 Aug 2002 21:43:01 -0000 1.17.2.2 *************** *** 1,3 **** --- 1,4 ---- <?php + // File: $Id$ // ---------------------------------------------------------------------- *************** *** 29,32 **** --- 30,34 ---- if (!eregi($currentFile, $PHP_SELF)) { die ("Access Denied"); } + function puthome($ihome) { *************** *** 45,48 **** --- 47,51 ---- } + function withcomments($comm) { echo "<br><b>"._ALLOWCOMMENTS."</b> "; *************** *** 59,62 **** --- 62,66 ---- } + // added by EB to reuse the code function storyPreview($subject, $hometext, $bodytext="", $notes="", $topic) *************** *** 70,76 **** --- 74,82 ---- $opPrefix; + list($dbconn) = pnDBGetConn(); $pntable = pnDBGetTables(); + list($subject, $hometext, *************** *** 84,87 **** --- 90,94 ---- $notes)); + $column = &$pntable['topics_column']; $result=$dbconn->Execute("SELECT $column[topicimage] *************** *** 89,92 **** --- 96,100 ---- WHERE $column[topicid]=" . pnVarPrepForDisplay($topic)); + list($topicimage) = $result->fields; $tipath = pnConfigGetVar('tipath'); *************** *** 103,106 **** --- 111,115 ---- } + // added by EugenioBaldi to reuse the code function storyEdit($subject, $hometext, $bodytext, $notes, $topic, $ihome, $catid, $alanguage, $comm, $aid, $informant) *************** *** 112,118 **** --- 121,129 ---- $opPrefix; + list($dbconn) = pnDBGetConn(); $pntable = pnDBGetTables(); + echo "<b>"._TITLE."</b><br>" ."<input type=\"text\" name=\"subject\" size=\"50\" value=\"" . pnVarPrepForDisplay($subject) . "\"><br><br>"; *************** *** 136,139 **** --- 147,151 ---- } + // added by AV to reuse the code function buildLanguageMenu($inheritselection, $alanguage){ *************** *** 177,187 **** --- 189,202 ---- } + // added by AV to reuse the code function buildTopicsMenu($topic) { + list($dbconn) = pnDBGetConn(); $pntable = pnDBGetTables(); + $column = &$pntable['topics_column']; $toplist = $dbconn->Execute("SELECT $column[topicid], $column[topictext] *************** *** 191,194 **** --- 206,210 ---- echo "<option value=\"\">"._SELECTTOPIC."</option>\n"; + while(list($topicid, $topics) = $toplist->fields) { if ($topicid == $topic) { *************** *** 204,207 **** --- 220,224 ---- } + // added by AV to reuse the code function buildCalendarMenu($automated, &$year, &$day, &$month, &$hour, &$min) *************** *** 231,237 **** } $date = "$tmonth $tday, $tyear @ $thour:$tmin:$tsec"; /* ML get the language from the queue table */ - $formatted_date = ml_ftime(""._DATETIMELONG."", mktime($today['hours'],$today['minutes'],$today['seconds'],$today['mon'],$today['mday'],$today['year'])); if(!$automated){ ! echo ""._NOWIS.": $formatted_date<br><br>"; echo ""._HOUR.": <select name=\"hour\" class=\"pn-text\">"; $hour = 0; --- 248,253 ---- } $date = "$tmonth $tday, $tyear @ $thour:$tmin:$tsec"; /* ML get the language from the queue table */ if(!$automated){ ! echo ""._NOWIS.": $date<br><br>"; echo ""._HOUR.": <select name=\"hour\" class=\"pn-text\">"; $hour = 0; *************** *** 282,290 **** echo "</select> "; $date = getdate(); - $formatted_date = ml_ftime(""._DATETIMELONG."", mktime($date['hours'],$date['minutes'],$date['seconds'],$date['mon'],$date['mday'],$date['year'])); $year = $date['year']; echo ""._YEAR.": <input type=\"text\" name=\"year\" value=\"$year\" size=\"5\" maxlength=\"4\"><br>"; }else{ ! echo ""._NOWIS.": $formatted_date<br><br>"; echo ""._HOUR.": <select name=\"hour\" class=\"pn-text\">"; $xhour = 0; --- 298,305 ---- echo "</select> "; $date = getdate(); $year = $date['year']; echo ""._YEAR.": <input type=\"text\" name=\"year\" value=\"$year\" size=\"5\" maxlength=\"4\"><br>"; }else{ ! echo ""._NOWIS.": $date<br><br>"; echo ""._HOUR.": <select name=\"hour\" class=\"pn-text\">"; $xhour = 0; *************** *** 347,350 **** --- 362,366 ---- } } + function buildProgramStoryMenu($automated){
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 |