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 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
13 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
14 <head>
15 <title>MySQLinks | Logged In: <?php echo $_SESSION['valid']['name']; ?></title>
16 <link rel="stylesheet" type="text/css" href="mysqlinks.css" media="all" name="default" />
17 <meta http-equiv="imagetoolbar" content="no" />
18 <meta http-equiv="cache-control" content="no-cache" />
19 <meta http-equiv="pragmas" content="no-cache" />
20 <meta http-equiv="robots" content="noindex,nofollow,noarchive,nocache" />
21 <meta http-equiv="Content-type" content='text/html; charset="utf-8"' />
22 rizwank 1.1 <meta http-equiv="Content-Language" content="en-au" />
23 </head>
24 <body>
25
26
27
28 <div id="header">
29
30 </div>
31
32
33
34 <div id="menu">
35 <span class="menu-pad"> <?php echo $mysqvars['version']; ?></span>
36 <a href="<?php echo $mysqvars['url']; ?>">Main</a> · <a href="<?php echo $mysqvars['url']; ?>tools.php">Tools</a> · <a href="<?php echo $mysqvars['url']; ?>admin.php">Admin</a> · <a href="<?php echo $mysqvars['url']; ?>logout.php">Logout</a> · <a href="<?php echo $mysqvars['url']; ?>help.php">Help</a>
37 </div>
38
39
40 <div id="title">
41 <a href="http://freebies.wiccked.com/mysqlinks/"><img src="mysqlinks_maintitle.png" width="301" height="64" title="MySQLinks" alt="MySQLinks" border="0" /></a><br />
42 </div>
43 rizwank 1.1
44 <div id="categories">
45 <?php
46 $categorylist = $mysqvars['path'] . "lib/share_categories.php";
47 include($categorylist);
48 ?>
49 </div>
50
51 <div id="links">
52
53 <h1>
54 tools and special links
55 </h1>
56
57 <?php
58 // load the tools
59
60 $dir = getcwd() . "/tools/";
61
62 if ($handle = opendir($dir)) {
63 while (false !== ($file = readdir($handle))) {
64 rizwank 1.1 $ext = explode('.',$file);
65 if ($file != "." && $file != ".." && $ext[1] == "def") {
66 $tools[] = $file;
67 }
68 }
69 closedir($handle);
70 }
71
72 $count = count($tools);
73
74 ?>
75
76 <?php
77 for ($i = 0; $i < $count; $i++) {
78 $inc = $dir . $tools[$i];
79 include($inc);
80 print "\n<br />\n";
81 }
82 ?>
83
84 </div>
85 rizwank 1.1
86
87 </body>
88 </html>
|