function check(&$link, $x, $regex, $szregex = '', $pattern = '', $replace = '', $opt = array()) { if (!empty($pattern)) { $link = preg_replace($pattern, $replace, $link); } $cook = $ref = $bytes = $fixsize = $size = 0; $fol = $head = 1; if (!empty($opt)) { if (array_key_exists('bytes', $opt)) { $bytes = $opt['bytes'] ? 1 : 0; } if (array_key_exists('fixsize', $opt)) { $fixsize = $opt['fixsize'] ? 1 : 0; $fixsizeP = $fixsizeR = ''; if ($fixsize && array_key_exists('fixsizeP', $opt)) { $fixsizeP = $opt['fixsizeP']; if (array_key_exists('fixsizeR', $opt)) { $fixsizeR = $opt['fixsizeR']; } } } if (array_key_exists('cookie', $opt) && $opt['cookie'] != false) { $cookie = $opt['cookie']; } if (array_key_exists('follow', $opt)) { $fol = $opt['follow']; } if (array_key_exists('referer', $opt) && $opt['referer'] != false) { $ref = $opt['referer']; } if (array_key_exists('header', $opt)) { $head = $opt['header'] ? 1 : 0; } } $page = curl($link, 0, $cookie, $fol, $ref, $head); $link = htmlentities($link, ENT_QUOTES); if ($szregex !== true && preg_match('@' . $regex . '@i', $page) || $szregex === true && preg_match('@' . $regex . '@i', $page, $fz)) { if (!empty($fz) || !empty($szregex) && preg_match('@' . $szregex . '@i', $page, $fz)) { if (!array_key_exists('size', $fz)) { $fz['size'] = $fz[1]; } if ($bytes) { $size = bytesToKbOrMbOrGb($fz['size']); } else { if ($fixsize) { if (!array_key_exists('XB', $fz)) { $fz['XB'] = $fz[2]; } $fz['XB'] = str_replace(array('YTES', 'YTE'), '', strtoupper($fz['XB'])); if (!empty($fixsizeP)) { $fz['size'] = str_replace($fixsizeP, $fixsizeR, $fz['size']); } $fz['size'] = str_replace(',', '.', $fz['size']); switch ($fz['XB']) { // KbOrMbOrGbToBytes :D case 'GB': $fz['size'] *= 1024; case 'MB': $fz['size'] *= 1024; case 'KB': $fz['size'] *= 1024; } $size = bytesToKbOrMbOrGb($fz['size']); } else { if (!array_key_exists('XB', $fz)) { $fz['XB'] = strtoupper($fz[2]); } $fz['size'] = str_replace(',', '.', $fz['size']); $size = $fz['size'] . ' ' . $fz['XB']; } } $size = explode(' ', $size); $size[0] = round($size[0], 2); $size = implode(' ', $size); } $chk = showlink($link, $size); } elseif (empty($page) || preg_match('@class="bott_p_access2?"@i', $page)) { $chk = showlink($link, 0, 2); } else { $chk = showlink($link, 0, 0); } return array($chk, $size); }
<html> <head> <meta charset="utf-8"> <title>Show</title> <link rel="stylesheet" href="index.css" media="screen" title="no title" charset="utf-8"> <?php //LOADS THE NEEDED FILES FROM ELSEWHERE require 'database.php'; global $tabl; ?> </head> <body> <?php showlink(); ?> <div class="center"> <?php $columns = ""; // Preps the columns variable as a string //Sets the variables to NULL or NULL $id = isset($_POST['id']); $username = isset($_POST['username']); $password = isset($_POST['password']); $salt = isset($_POST['salt']); if (isset($_POST['column'])) { $order = $_POST['column']; } else { $order = '';
function create_defaults() { global $ns, $ac, $plugindir; $plugindir = e_PLUGIN . "content/"; if (!is_object($ac)) { require_once $plugindir . "handlers/content_convert_class.php"; $ac = new content_convert(); } $content_mainarray = $ac->create_mainparent("content", "1", "1"); $article_mainarray = $ac->create_mainparent("article", "1", "2"); $review_mainarray = $ac->create_mainparent("review", "1", "3"); $main_convert = ''; //only output detailed information if developer mode is set if ($pref['developer']) { showlink(); $text = "<table class='fborder' style='width:95%; padding:0px;'>"; $text .= $ac->results_conversion_mainparent($content_mainarray, $review_mainarray, $article_mainarray); $text .= "</table>"; $main_convert = array(CONTENT_ADMIN_CONVERSION_LAN_52, $text); } return $main_convert; }
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Register</title> <link rel="stylesheet" href="./index.css"> <?php require 'database.php'; global $tabl; ?> </head> <body> <?php echo showlink(); ?> <div style="padding-left: 40px;"> <h1>Register</h1> <?php function generateSaltPart() { $rand = rand(0, 2 ** 31); $salt = base_convert($rand, 10, 36); ?> <!-- <span class="monospace"><?php echo $salt; ?> </span> --> <?php return $salt; } function generateSalt()
if ($chk == 1) { $glinks[$link] = $size; } flush(); //ob_flush(); $Checked = true; CountandCheck($x); } } } if (($d || $dk) && !$Checked && $Kl != false) { showlink($link, 0, 3, "Removed: {$Kl}"); CountandCheck($x); flush(); } elseif ($d && !$Checked) { showlink($link, 0, 4, 'Unknown Link'); //CountandCheck($x); //Count? flush(); } } echo "</div>\n"; $time = explode(' ', microtime()); $time = $time[1] + $time[0]; $endtime = $time; $totaltime = $endtime - $begintime; $x--; $x2--; $plural = $x == 1 ? '' : lang(19); $options['fgc'] == 0 ? $method = 'cURL' : ($method = 'file_get_contents'); echo '<p style="text-align:center">'; printf(lang(18), $x, $plural, $totaltime, $method);
echo $ip; ?> ?port=<?php echo $port; ?> ">>> Connect!</a></h3> </td></tr></table> <?php if (!isset($error[0])) { echo useron($info, $sinfo, $new); } ?> <?php if (!isset($error[0])) { echo ts_server($sinfo, $info, $new); } ?> <?php echo tree('0', '', $clist, $error, $sinfo, $plist, $info, $new); if (!isset($error[0])) { echo legend($info, $new); echo stats($info, $sinfo, $new); echo tm_client($info, $plist, $new); echo showlink($info, $new); } echo "</td></tr></table>"; closetable(); require_once THEMES . "templates/footer.php";
<?php $config = readconfig(); header1(); foreach ($config as $code => $data) { area($code, $data["x"], $data["y"], $data["dx"], $data["dy"]); } header2(); foreach ($config as $code => $data) { showlink($code, $data["name"], $data["location"], $data["url"]); } header3(); function header1() { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title>New South Wales Trails Map</title> <style type="text/css"> body { padding: 0; margin: 0; } #map ul { padding: 0; margin: 0; } #map { margin:0;