1 rizwank 1.1 Edit your configuration and login information below.<br />
2 <span class="error">Make sure you check the details before saving, as you will not be able to undo your changes!</span><br /><br />
3
4 <form action="lib/func_editconf.php" method="post" class="bulk_links">
5
6 <fieldset>
7 <legend>MySQLinks Configuration</legend>
8 <strong>Installed Path:</strong><br />
9 <small>It is unlikely that you will need to change this setting unless your server's configuration has changed or you have changed your site's address.</small><br />
10 <input type="text" name="mysqvars[path]" value="<?php echo $mysqvars['path']; ?>" class="box" /><br /><br />
11
12 <strong>Installed URL:</strong><br />
13 <small>It is unlikely that you will need to change this setting unless your server's configuration has changed or you have changed your site's address.</small><br />
14 <input type="text" name="mysqvars[url]" value="<?php echo $mysqvars['url']; ?>" class="box" /><br /><br />
15
16 <strong>Default Category:</strong><br />
17 <small>This is the links category that will be displayed when you first log into MySQLinks.</small><br />
18 <select name="mysqvars[default_category]">
19 <?php
20
21 $results = mysql_list_tables($mysqdb['name']) or die("Invalid request: " . mysql_error());
22 rizwank 1.1
23 while ($row = mysql_fetch_row($results)) {
24 $ctgs[] = $row[0];
25 }
26
27 array_unshift($ctgs, $mysqvars[default_category]);
28 $ctgs = array_values(array_unique($ctgs));
29
30 for ($i = 0; $i < count($ctgs); $i++) {
31 print "<option value=\"$ctgs[$i]\">$ctgs[$i]</option>\n";
32 }
33
34 mysql_free_result($results);
35
36 ?>
37 </select>
38 <br /><br />
39
40 <strong>Recently Updated XML Location:</strong><br />
41 <small>This is the file containing information about recently updated blogs that your links will be compared with when loading the page.</small><br />
42 <input type="text" name="mysqvars[xml]" value="<?php echo $mysqvars['xml']; ?>" class="box" /><br /><br />
43 rizwank 1.1
44 <strong>Security Code for using MySQL<em>inc</em>:</strong><br />
45 <small>When you include your links in your website, you will need this code in order for the links to appear. This will prevent other users on the same server from including your links on their pages.</small><br />
46 <input type="text" name="mysqvars[incpw]" value="<?php echo $mysqvars['incpw']; ?>" class="box" /><br /><br />
47
48 <strong>Link Columns:</strong><br />
49 <small>How many columns would you like your links to be displayed in?</small><br />
50 <input type="text" name="mysqvars[columns]" value="<?php echo $mysqvars['columns']; ?>" class="box" /><br /><br />
51
52 </fieldset>
53 <br />
54 <fieldset>
55 <legend>MySQL Database Settings</legend>
56 <strong>MySQL Database Username:</strong><br />
57 <small>Please enter the username for the MySQLinks database.</small><br />
58 <input type="text" name="db[user]" value="<?php echo $mysqdb['user']; ?>" class="box" /><br /><br />
59
60 <strong>MySQL Database Password:</strong><br />
61 <small>Please enter the password for the MySQLinks database.</small><br />
62 <input type="password" name="db[pass]" value="<?php echo $mysqdb['pass']; ?>" class="box" /><br /><br />
63
64 rizwank 1.1 <strong>MySQL Database Name:</strong><br />
65 <small>Please enter the name of the database.</small><br />
66 <input type="text" name="db[name]" value="<?php echo $mysqdb['name']; ?>" class="box" /><br /><br />
67
68 <strong>MySQL Database Hostname:</strong><br />
69 <small>Please enter the hostname of the database server.</small><br />
70 <input type="text" name="db[host]" value="<?php echo $mysqdb['host']; ?>" class="box" /><br /><br />
71
72 </fieldset>
73 <br />
74 <fieldset>
75 <legend>MySQLinks User Settings</legend>
76 <strong>MySQLinks Login Username:</strong><br />
77 <small>The username you want to use to login to access MySQLinks.</small><br />
78 <input type="text" name="user[name]" value="<?php echo $mysquser['name']; ?>" class="box" /><br /><br />
79
80 <strong>Your real name:</strong><br />
81 <small>This is shown in the status bar when you are logged in and is used for submitting bug reports.</small><br />
82 <input type="text" name="user[rname]" value="<?php echo $mysquser['rname']; ?>" class="box" /><br /><br />
83
84 <strong>E-Mail Address:</strong><br />
85 rizwank 1.1 <small>This is used for verifying your identity if you forget your password, and for submitting bug reports.</small><br />
86 <input type="text" name="user[mail]" value="<?php echo $mysquser['mail']; ?>" class="box" /><br /><br />
87
88 <strong>Password:</strong><br />
89 <small>The password you use to login to MySQLinks. Leave it blank if you do not wish to change your password. If you are changing your password, please type it twice to ensure accuracy. If you do not type matching passwords, your password will not be changed.</small><br />
90 <input type="password" name="user[pass_new]" value="" class="box" /> <input type="password" name="user[pass_ver]" value="" class="box" />
91 <input type="hidden" name="user[pass_old]" value="<?php echo $mysquser['pass']; ?>" class="box" />
92 <br /><br />
93
94
95 </fieldset>
96 <br />
97 <input type="submit" value="Save Changes" />
98
99 </form>
|