From: <w4...@us...> - 2002-09-26 02:53:24
|
Update of /cvsroot/xoops/xoops-current/html/modules/mydownloads In directory usw-pr-cvs1:/tmp/cvs-serv1808/html/modules/mydownloads Modified Files: submit.php viewcat.php Log Message: no comment Index: submit.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/modules/mydownloads/submit.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** submit.php 15 Jul 2002 08:13:18 -0000 1.1.1.1 --- submit.php 26 Sep 2002 02:53:21 -0000 1.2 *************** *** 35,39 **** redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST); exit(); ! } if(!isset($HTTP_POST_VARS['submitter'])) { $submitter = $xoopsUser->uid(); --- 35,39 ---- redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST); exit(); ! } if(!isset($HTTP_POST_VARS['submitter'])) { $submitter = $xoopsUser->uid(); *************** *** 55,64 **** if ($HTTP_POST_VARS["homepage"]=="") { $eh->show("1001"); ! } // Check if Description exist if ($HTTP_POST_VARS['description']=="") { $eh->show("1008"); } ! if ( !empty($HTTP_POST_VARS['cid']) ) { $cid = intval($HTTP_POST_VARS['cid']); --- 55,64 ---- if ($HTTP_POST_VARS["homepage"]=="") { $eh->show("1001"); ! } // Check if Description exist if ($HTTP_POST_VARS['description']=="") { $eh->show("1008"); } ! if ( !empty($HTTP_POST_VARS['cid']) ) { $cid = intval($HTTP_POST_VARS['cid']); *************** *** 83,97 **** redirect_header("index.php",2,_MD_RECEIVED."<br>"._MD_WHENAPPROVED.""); exit(); ! }else{ if(!$xoopsUser){ redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST); exit(); ! } include(XOOPS_ROOT_PATH."/header.php"); OpenTable(); mainheader(); ! echo "<table width=\"100%\" cellspacing=0 cellpadding=1 border=0><tr><td colspan=2>\n"; ! echo "<table width=\"100%\" cellspacing=0 cellpadding=8 border=0><tr><td>\n"; echo "<br><br>\n"; echo "<li>"._MD_SUBMITONCE."</li>\n"; --- 83,97 ---- redirect_header("index.php",2,_MD_RECEIVED."<br>"._MD_WHENAPPROVED.""); exit(); ! }else{ if(!$xoopsUser){ redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST); exit(); ! } include(XOOPS_ROOT_PATH."/header.php"); OpenTable(); mainheader(); ! echo "<table width='100%' cellspacing=0 cellpadding=1 border=0><tr><td colspan=2 align='left'>\n"; ! echo "<table width='100%' cellspacing=0 cellpadding=8 border=0><tr><td>\n"; echo "<br><br>\n"; echo "<li>"._MD_SUBMITONCE."</li>\n"; *************** *** 100,132 **** echo "<li>"._MD_TAKEDAYS."</li>\n"; ! echo "<form action=\"submit.php\" method=post>\n"; ! echo "<table width=\"80%\"><tr>"; ! echo "<td align=\"right\" nowrap><b>"._MD_FILETITLE."</b></td><td>"; ! echo "<input type=\"text\" name=\"title\" size=\"50\" maxlength=\"100\">"; ! echo "</td></tr><tr><td align=\"right\" nowrap><b>"._MD_DLURL."</b></td><td>"; ! echo "<input type=\"text\" name=\"url\" size=\"50\" maxlength=\"250\" value=\"http://\">"; echo "</td></tr>"; ! echo "<tr><td align=\"right\" nowrap><b>"._MD_CATEGORY."</b></td><td>"; $mytree->makeMySelBox("title", "title"); echo "</td></tr>\n"; ! echo "<tr><td align=\"right\" nowrap><b>"._MD_HOMEPAGEC."</b></td><td>\n"; ! echo "<input type=\"text\" name=\"homepage\" size=\"50\" maxlength=\"100\"></td></tr>\n"; ! echo "<tr><td align=\"right\" nowrap><b>"._MD_VERSIONC."</b></td><td>\n"; ! echo "<input type=\"text\" name=\"version\" size=\"10\" maxlength=\"10\"></td></tr>\n"; ! echo "<tr><td align=\"right\" nowrap><b>"._MD_FILESIZEC."</b></td><td>\n"; ! echo "<input type=\"text\" name=\"size\" size=\"10\" maxlength=\"8\">"._MD_BYTES."</td></tr>\n"; ! echo "<tr><td align=\"right\" nowrap><b>"._MD_PLATFORMC."</b></td><td>\n"; ! echo "<input type=\"text\" name=\"platform\" size=\"45\" maxlength=\"50\"></td></tr>\n"; ! /* echo "<tr><td align=\"right\" nowrap>logourl</td><td>\n"; ! echo "<input type=\"text\" name=\"logourl\" size=\"50\" maxlength=\"60\"></td></tr>\n";*/ ! echo "<tr><td align=\"right\" valign=\"top\" nowrap><b>"._MD_DESCRIPTIONC."</b></td><td>\n"; echo "<textarea name=description cols=50 rows=6></textarea>\n"; echo "</td></tr>\n"; echo "</table>\n"; echo "<br>"; ! echo "<input type=\"hidden\" name=\"submitter\" value=\"".$xoopsUser->uid()."\"></input>"; ! echo "<center><input type=\"submit\" name=\"submit\" class=\"button\" value=\""._MD_SUBMIT."\"></input>\n"; ! echo " <input type=button value="._MD_CANCEL." onclick=\"javascript:history.go(-1)\"></input></center>\n"; echo "</form>\n"; echo "</td></tr></table></td></tr></table>"; --- 100,132 ---- echo "<li>"._MD_TAKEDAYS."</li>\n"; ! echo "<form action='submit.php' method=post>\n"; ! echo "<table width='80%'><tr>"; ! echo "<td align='right' nowrap><b>"._MD_FILETITLE."</b></td><td>"; ! echo "<input type='text' name='title' size='50' maxlength='100'>"; ! echo "</td></tr><tr><td align='right' nowrap><b>"._MD_DLURL."</b></td><td>"; ! echo "<input type='text' name='url' size='50' maxlength='250' value='http://'>"; echo "</td></tr>"; ! echo "<tr><td align='right' nowrap><b>"._MD_CATEGORY."</b></td><td>"; $mytree->makeMySelBox("title", "title"); echo "</td></tr>\n"; ! echo "<tr><td align='right' nowrap><b>"._MD_HOMEPAGEC."</b></td><td>\n"; ! echo "<input type='text' name='homepage' size='50' maxlength='100'></td></tr>\n"; ! echo "<tr><td align='right' nowrap><b>"._MD_VERSIONC."</b></td><td>\n"; ! echo "<input type='text' name='version' size='10' maxlength='10'></td></tr>\n"; ! echo "<tr><td align='right' nowrap><b>"._MD_FILESIZEC."</b></td><td>\n"; ! echo "<input type='text' name='size' size='10' maxlength='8'>"._MD_BYTES."</td></tr>\n"; ! echo "<tr><td align='right' nowrap><b>"._MD_PLATFORMC."</b></td><td>\n"; ! echo "<input type='text' name='platform' size='45' maxlength='50'></td></tr>\n"; ! /* echo "<tr><td align='right' nowrap>logourl</td><td>\n"; ! echo "<input type='text' name='logourl' size='50' maxlength='60'></td></tr>\n";*/ ! echo "<tr><td align='right' valign='top' nowrap><b>"._MD_DESCRIPTIONC."</b></td><td>\n"; echo "<textarea name=description cols=50 rows=6></textarea>\n"; echo "</td></tr>\n"; echo "</table>\n"; echo "<br>"; ! echo "<input type='hidden' name='submitter' value='".$xoopsUser->uid()."'></input>"; ! echo "<center><input type='submit' name='submit' class='button' value='"._MD_SUBMIT."'></input>\n"; ! echo " <input type=button value="._MD_CANCEL." onclick='javascript:history.go(-1)'></input></center>\n"; echo "</form>\n"; echo "</td></tr></table></td></tr></table>"; Index: viewcat.php =================================================================== RCS file: /cvsroot/xoops/xoops-current/html/modules/mydownloads/viewcat.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** viewcat.php 26 Sep 2002 01:02:15 -0000 1.2 --- viewcat.php 26 Sep 2002 02:53:21 -0000 1.3 *************** *** 129,133 **** //Page Numbering if ($downloadpages!=1 && $downloadpages!=0) { ! echo "<br /><br />"; $prev = $min - $show; if ($prev>=0) { --- 129,133 ---- //Page Numbering if ($downloadpages!=1 && $downloadpages!=0) { ! echo "<br /><br /><center>"; $prev = $min - $show; if ($prev>=0) { *************** *** 153,157 **** } ! echo "</td></tr></table>\n"; CloseTable(); --- 153,157 ---- } ! echo "</center></td></tr></table>\n"; CloseTable(); |