ProxySites.ca
Use this for your list.js :
PHP Code:
document.write('<style type="text/css">option {padding:1px 3px; }</style>');
<?php
require('./includes/config.php');
require('./includes/functions.php');
require('./includes/database.php');
$db = new Database();
if (!$db->connect($db_host, $db_user, $db_pass, $db_name))
pretty_death($db->error);
$sql = "SELECT id, proxy, hits, time
FROM {$db_tp}proxy WHERE active = 1
ORDER BY time DESC
LIMIT 0, 50";
$res = $db->query($sql);
?>
document.write('<form method="get" name="form" action="http://www.<?php echo $cfg['domain'] ?>/redirect.php" target="_top" style="border:1px solid #ccc;padding:3px 0;font-size:10px;width:210px;text-align:center;background-color:#000000;">');
document.write('<b>Latest 50 Proxies</b><br />');
document.write('<select name="url" size="12" style="width:200px;border:1px solid #ccc;margin:3px 0;" onclick="document.form.submit();">');
<?php
while ($row = $db->fetch_assoc($res)){ ?>
document.write('<option value="<?php echo $row['proxy'] ?>"><?php echo $row['proxy'] ?></option>');
<?php } ?>
document.write('</select><br />Powered by <a href="http://www.<?php echo $cfg['domain'] ?>/" style="color: black; text-decoration: none">ProxySites.Net</a></form>');
Use this as redirect.php :
PHP Code:
<?php
$redirectTo = $_GET['url'];
header("Location: $redirectTo");
?>
Use this where you want the list to show up :
Code:
<script type="text/javascript" src="http://www.proxysites.net/list.js"></script>
See an example of it at http://www.findproxysites.com/list-on-site.php
Bookmarks