1 rizwank 1.1 <?php
2
3 if (!isset($HTTP_GET_VARS['which'])) {
4 print "Please choose the category you would like to add links to.<br />";
5
6 $results = mysql_list_tables($mysqdb['name']) or die("Invalid request: " . mysql_error());
7
8 while ($row = mysql_fetch_row($results)) {
9 $cats[] = $row[0];
10 }
11
12 for ($i = 0; $i < count($cats); $i++) {
13 print "<a href=\"?func=3&which=" . $cats[$i] . "\"> • " . $cats[$i] . "</a><br />\n";
14 }
15
16 mysql_free_result($results);
17
18 } else {
19
20 print "Use the form below to add up to five links at a time to your category <em>" . $HTTP_GET_VARS[which] . "</em>. If you do not want to add that many links, simply leave the extra spaces blank.<br /><br />";
21 $inc = $mysqvars['path'] . "/lib/admin_addlinks_form.php";
22 rizwank 1.1 include($inc);
23 }
24
25 ?>
|