public function output_form($cata = 1) { $query = $this->db->get_where('logistic', array('catagory' => $cata)); $ready = sa($query->result_array()); $temp = array(); for ($i = 0; $i < count($ready); $i++) { $query = $this->db->query('SELECT * FROM student WHERE id = ?', array($ready[$i]['id']))->row(); array_push($temp, array('name' => '现在是乱码', 'number' => $query->number, 'choose_date' => $ready[$i]['chosen1'], 'real_date' => $i)); } return $temp; }
function s($input) { if (is_array($input)) { foreach ($input as $var => $val) { $output[$var] = sa($val); } } else { if (get_magic_quotes_gpc()) { $input = stripslashes($input); } $input = cleanInput($input); $output = $input; } return $output; }
function search_on_facebook($graph_url, $fullname) { if (!($results = @file_get_contents($graph_url))) { $erreur = 101; $reponse = "Erreur lors de la connexion à FB"; return 0; } $json = json_decode($results); //Parse foreach ($json->data as $show) { if (sa(strtolower($show->name)) == sa(strtolower($fullname))) { return $show->id; } } return 0; }
function main() { global $_PAGE; $s = isset($_GET["s"]) ? $_GET["s"] : 0; // web site only $k = isset($_GET["k"]) ? $_GET["k"] : 0; // _catid $n = isset($_GET["n"]) ? $_GET["n"] : $_PAGE; // per page, n-count $f = isset($_GET["f"]) ? $_GET["f"] : 0; // from $ww = isset($_GET["w"]) ? $_GET["w"] : ""; //word $fwght = isset($_GET["g"]) ? $_GET["g"] : 0; //max weight $np = $f; $tp = $f; $w = config_prep($ww); echo "<hr>"; echo "<table width='960px'><tr><td width='840px'>"; if (isset($_GET["sitemap"])) { sm($_GET["sitemap"]); } if (isset($_GET["sitasets"])) { sa($_GET["sitasets"], $_GET['sid']); } if (isset($_GET["wcount"])) { coutwords($_GET["wcount"]); } else { if (strlen($w)) { if (substr($w, 0, 4) == "http") { dbcontent($w); } if ($w == "xxx") { sites(); } else { $np = ex($w, $f, $n, $k, $s, $fwght); } } else { ads(); } } if ($np != $f) { if ($np > $n) { $x = $f - $n; echo "<a href='index.php?w={$ww}&f={$x}&n={$n}&s={$s}&g={$fwght}'><<-Prev</a> MITZA-1.0.0.1 <font color='red'>Mitzzzzzzzzzz</font><font color='blue'>z</font> <font color='green'>z </font> <font color='blue'>z</font> <font color='red'> i </font> <font color='yellow'>n </font> <font color='blue'>g</font>..."; } else { echo "X<-Prev MITZA-1.0.0.1 <font color='red'>Mitzzzzzzzzzz</font><font color='blue'>z</font> <font color='green'>z </font> <font color='blue'>z</font> <font color='red'> i </font> <font color='yellow'>n </font> <font color='blue'>g</font>..."; } if ($tp + $_PAGE == $np) { echo "<a href='index.php?w={$ww}&f={$np}&n={$n}&s={$s}&g={$fwght}'>Next->></a> "; } else { echo "Next->X"; } } global $CAT; echo "</td><td valign='top' class='fancy'><div align='center'>"; if ($CAT == 0) { echo "<a href='donate.html'>support</div><div><img src='include/logo.png'></a>"; } else { echo "Powered by<bt><a href='http://enjoydecor.com' title='Toronto home staging and interior decorating'><img src='http://enjoydecor.com/_themes/_simple3/llogo.jpg' width='110px' alt='home staging enjoydecor logo'></a>"; } echo "</div></td></tr></table>"; echo "<hr>"; return $f; }