Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Anonymous
Monday, July 31st, 2006 at 6:05:04pm MDT 

  1. <?phpM
  2. require("/usr/home/public_html/links/resources/LinkSql.inc.php");M
  3. $db = new LinkSQL($DBName);M
  4. M
  5. if (empty($page)){M
  6. $page = 0;M
  7. }M
  8. $record = 20;M
  9. M
  10. $PicturePath = "/usr/home/public_html/links/resources/photo/";M
  11. M
  12. if (empty($catid)){M
  13. $catid = 0;M
  14. }M
  15. M
  16. $cataresult = $db->getchildcatalog($catid);M
  17. M
  18. $linkresult = $db->getlinks($page,$record,$catid);M
  19. ?>M
  20. <html>M
  21. <head>M
  22. <title></title>M
  23. <meta http-equiv="Content-Type" content="text/html; charset=<?php print
  24. "$front_charset"; ?>">M
  25. <link rel="stylesheet" href="./style/style.css" type="text/css">M
  26. <script language="JavaScript">M
  27. <!--M
  28. function MM_reloadPage(init) {  //reloads the window if Nav4 resizedM
  29.   if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {M
  30.     document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}M   
  31.   else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();M
  32. }M
  33. MM_reloadPage(true);M
  34. // -->M   
  35. </script>M
  36. </head>M
  37. M
  38. <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">M
  39. <?phpM
  40. include("/usr/home/public_html/links/resources/top.php3");M
  41. ?>M 
  42.     M
  43.     <?phpM
  44.     if (!empty($cataresult)) {M
  45.  ?>M
  46.           &gt;&gt; <?php print "$front_categories"; ?> M
  47.              
  48.             <?php            M
  49.             while ( list($key,$val)=each($cataresult) ) {M
  50.             $catalogid = stripslashes($val["catalogid"]);M
  51.             $catalogname = stripslashes($val["catalogname"]);M
  52.             ?>M
  53.             <a href="<?php print "$PHP_SELF?catid=$catalogid"; ?>"><?php print "$catalogname"; ?></a><br> M
  54.             <?php            M
  55.             }M
  56.             ?>M
  57.               M
  58.       <?phpM
  59.       }M
  60.       M
  61.     if (!empty($linkresult)) {M
  62.     ?>M
  63.             <?phpM
  64.             M
  65.             while ( list($key,$val)=each($linkresult) ) {M
  66.             $title = stripslashes($val["title"]);M
  67.             $url = stripslashes($val["url"]);M
  68.             $description = stripslashes($val["description"]);M
  69.             $picture = stripslashes($val["picture"]);M
  70.             $code = stripslashes($val["code"]);M
  71.                     if (!empty($code)) {
  72.                     print "$code<br><br>";M
  73.                     }else{M
  74.                     print "<a href=\"$url\" target=\"_blank\">";M
  75.                             if (!empty($picture)){M
  76.                             print "<img src=\"$PicturePath$picture\" alt=\"$title\" border=\"0\">";M
  77.                             }else{M
  78.                             print "$title";M
  79.                             }M
  80.                             print "</a>";M
  81.                             if (!empty($description)) {M
  82.                             print "-- $description";M
  83.                             }M
  84.                             print "<br><br>";M
  85.         }            M
  86.             }M
  87.             ?>M
  88.               <?phpM
  89.               $pagenext = $page+1;M
  90.                 $result1 = $db->getlinks($pagenext,$record,$catid);M
  91.                 if ($page!=0)M
  92.                 {M
  93.                 $pagepre = $page-1;             M
  94. print "<a href=\"$PHP_SELF?page=$pagepre&catid=$catid\"><font color=\"#FF0000\">$front_previouspage</font></a>&nbsp;&nbsp;&nbsp;";M
  95.                 }M
  96.                 if (!empty($result1))M
  97.                 {M
  98.                 print "<a href=\"$PHP_SELF?page=$pagenext&catid=$catid\"><font color=\"#FF0000\">$front_nextpage</font></a>&nbsp;";M
  99.                 }M
  100.                 ?>M
  101.          M
  102.       <?phpM
  103.       }M
  104.       ?>M
  105.       M 
  106. <?phpM   
  107. include("/usr/home/public_html/links/resources/bottom.php3");M
  108. ?>M

advertising

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

worth-right