function SQLRows($st) { return mysql_num_rows(SELECT($st)); }
$sql = "SELECT * FROM products WHERE is_active ='1' {$sq} "; $res = mysqli_query($link, $sql); $items = []; while ($row = mysqli_fetch_assoc($res)) { $items[] = $row; } return $items; } if (isset($_GET['order_by_price'])) { $sq = order_by_price(); } elseif (isset($_GET['order_by_alf'])) { $sq = order_by_alf(); } else { $sq = " ORDER BY id DESC "; } $items = SELECT($link, $sq); foreach ($items as $item) { ?> <div class="col-lg-4"> <div class="product_fon"> <h2><?php echo $item['name']; ?> </h2> <span ><b>Товар №<?php echo $item['id']; ?> </b>. Производитель: <b><?php
echo $_GET['hub_challenge']; } else { if ($method == 'POST') { $inputJSON = file_get_contents('php://input'); $input = json_decode($inputJSON, true); foreach ($input['entry'] as $entry) { foreach ($entry['changes'] as $change) { $page_id = $change['value']['page_id']; $conversation_id = $change['value']['thread_id']; $field = $change['field']; if ($field == 'conversations') { $query = new query(); $query->dbname = $config['database_name']; $query->table = 'conversations_botid'; $query->where = array('conversation_id', $conversation_id); $temp = fetchone(SELECT($query)); if ($temp == null) { $html = cURL_HTTP_Request('http://alice.pandorabots.com/', null, false, 'cookie/' . $conversation_id . '.txt')->html; $html = str_replace(array("\t", "\r\n", "\r", "\n"), "", $html); preg_match('/<iframe src="http:\\/\\/sheepridge\\.pandorabots\\.com\\/pandora\\/talk\\?botid=(.+?)&skin=custom_input"/', $html, $match); $botid = $match[1]; $created_time = date("c", 0); } else { $botid = $temp['botid']; $created_time = $temp['created_time']; } $conversations = $fb->get('/' . $conversation_id . '/messages?fields=message,from,created_time', $page_token)->getDecodedBody(); $query = new query(); $query->dbname = $config['database_name']; $query->table = 'conversations_botid'; $query->where = array('conversation_id', $conversation_id);
<meta charset="UTF-8"> </head> <body> <center> <h2>Third-Party Verification</h2> <hr> <a href="/">Home Page</a><br><br> <?php if (!isset($_GET['token'])) { echo 'No given token'; } else { require "function/SQL-function/sql.php"; require "config/config.php"; $query = new query(); $query->dbname = $config['database']['dbname']; $query->table = $config['database']['table']; $query->where = array(array('token', $_GET["token"])); $row = fetchone(SELECT($query)); if ($row) { echo 'ID: ' . $row['fbid'] . '<br>'; echo 'Name: ' . $row['fbname'] . '<br>'; echo 'Time: ' . $row['datetime'] . '<br>'; echo '<a href="//www.facebook.com/' . $row['fbid'] . '">Facebook Profile Page</a>'; } else { echo 'Not found token'; } } ?> </center> </body> </html>
echo $config['reCAPTCHA']['site_key']; ?> "></div> <input id="createbtn" type="submit" value="Create Your Identity Verification" disabled> </form> <hr> <?php require __DIR__ . '/function/fblogin.php'; if ($data = checklogin()) { ?> <table> <tr><td>time</td><td>token</td><td>tool</td></tr> <?php require __DIR__ . '/function/SQL-function/sql.php'; $query = new query(); $query->dbname = 'xiplus'; $query->table = 'tpv'; $query->where = array(array('fbid', $data['id'])); $query->order = array(array('datetime')); $row = SELECT($query); foreach ($row as $temp) { echo '<tr><td>' . $temp['datetime'] . '</td><td>' . $temp['token'] . '</td><td><button onclick="deletetoken(\'' . $temp['token'] . '\')">delete</a></td></tr>'; } ?> </table> <?php } ?> </center> </body> </html>
} /* * if viewer country match video target country * will count it otherwise leave it */ $log .= "<b>Country target</b>: {$adCountry}<br/>"; if ($adCountry == $countryName || $adCountry == "any") { $log .= "Country: OK<br/>"; /* UPDATE [publink] number of views */ if ($row = SELECT(" * FROM publink_info WHERE pubUID=" . $id . " AND YTID LIKE '" . $link . "'")) { $log .= "YTID + publishID : FOUND<br/>"; UPDATE(" publink_info SET totalView=totalView+1 WHERE pubUID=" . $id . " AND YTID LIKE '" . $link . "'"); /* UPDATE [adlink] number of views*/ UPDATE(" adlink_info SET viewed=viewed+1 WHERE adUID=" . $adUID); /* If the country for this adLink exist just update number of views */ if ($row = SELECT(" * FROM publink_stat WHERE adUID=" . $adUID . " AND countryName LIKE '" . $countryName . "'")) { UPDATE(" publink_stat SET views=views+1 WHERE adUID=" . $adUID . " AND countryName LIKE '" . $countryName . "'"); } else { /* If the country for this adLink does not exist add a row and set it to 1 (number of views */ INSERT(" INTO publink_stat VALUES('" . $adUID . "','" . $countryCode . "','" . $countryName . "',1)"); } $log .= "<b>--- UPDATE DONE ---</b><br/>"; } else { $log .= "YTID({$link}) + publishID({$id}) : NOT Found on DB<br/>"; } } else { $log .= "Country: Missmatch<br/>"; } } } else { //Has been viewd during last GapView