rendered paste body<?php
function get_list_prem() {
$sql = mysql_query("SELECT * FROM proxies WHERE prem = 1 ORDER BY rand() LIMIT 10");
$array = mysql_fetch_array($sql);
return $array;
}
function get_list_colbold() {
$sql = mysql_query("SELECT * FROM proxies WHERE colbold = 1 ORDER BY rand() LIMIT 20");
$array = mysql_fetch_array($sql);
return $array;
}
function get_list_normal() {
$sql = mysql_query("SELECT * FROM proxies WHERE normal = 1");
$array = mysql_fetch_array($sql);
return $array;
}
function build_list() {
$prems = get_list_prem();
$colbold = get_list_colbold();
$normal = get_list_normal();
$numprox = count($prems) + count($colbold) + count($normal);
$form = "<form method=\"POST\" name=\"proxies\" action=\"proxify.php\" target=\"_blank\">";
$form .= "Enter the URL (without the http://www.):<br>";
$form .= '<input type=\"text\" name="\url\"><br>';
$form .= "Select from any of ".$numprox." proxies:";
$form .= "<select name=\"proxlist\" onclick=\"document.proxies.submit();\";
$form .= '<option style="background-color: #FF9900; font-weight: bold;" value="randprox">-- RANDOM PROXY SELECT --</option>';