1 rizwank 1.1 <?php
2 //get set
3 include('lib/config.php');
4
5 // get authorised
6 include('lib/validate.php');
7
8 // get connected
9 include('lib/database.php');
10 ?>
11
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
13
14 <html>
15 <head>
16 <title>MySQLinks [Logged In: <?php echo $_SESSION['valid']['name']; ?>]</title>
17 <link rel="stylesheet" type="text/css" href="mysqlinks.css" name="default style" media="all" />
18
19 </head>
20 <body onload="self.focus();">
21
22 rizwank 1.1 <br />
23 <img src="mysqlinks_bookmarklet.png" width="291" height="71" alt="MySQLinks" /><br /><br />
24 <form name="bmform" action="lib/func_newlink.php" method="post" class="bmform">
25 <b>New Link URL:</b><br />
26 <input type="text" name="bmform_url" value="<?php echo $HTTP_GET_VARS['url']; ?>" />
27 <br /><br />
28
29 <b>New Link Title:</b><br />
30 <input type="text" name="bmform_title" value="<?php echo stripslashes($HTTP_GET_VARS['title']); ?>" />
31 <br /><br />
32
33 <b>New Link Extra Info:</b><br />
34 <input type="text" name="bmform_extras" value="<?php echo stripslashes($HTTP_GET_VARS['extras']); ?>" />
35 <br /><br />
36
37 <b>New Link Category:</b><br />
38 <select name="bmform_category">
39 <option></option>
40 <?php
41
42 $results = mysql_list_tables($mysqdb['name']) or die("Invalid request: " . mysql_error());
43 rizwank 1.1
44 while ($row = mysql_fetch_row($results)) {
45 print "<option value=\"$row[0]\">$row[0]</option>";
46 }
47
48 mysql_free_result($results);
49
50 ?>
51 </select>
52 <br /><br />
53
54 <b>New Link Status:</b><br />
55 <select name="bmform_status">
56 <option value="1">Public</option>
57 <option value="0">Private</option>
58 </select>
59 <br /><br />
60 <input type="Submit" value="Add Link" class="button" />
61 </form>
62
63
64 rizwank 1.1 </body>
65 </html>
|