This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$server_scheme = @$_SERVER["HTTPS"]; | |
$pageURL = ($server_scheme == "on") ? "https://" : "http://"; | |
$http_url = $pageURL . $_SERVER['HTTP_HOST']; | |
$url = parse_url($wo['config']['site_url']); | |
if (!empty($url)) { | |
if ($url['scheme'] == 'http') { | |
if ($http_url != 'http://' . $url['host']) { | |
header('Location: ' . $wo['config']['site_url']); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$owner_id = isset($_REQUEST['owner_id']) ? clean($_REQUEST['owner_id']) : false; | |
$count = isset($_REQUEST['count']) ? intval($_REQUEST['count']) : false; | |
$offset = isset($_REQUEST['offset']) ? intval($_REQUEST['offset']) : false; | |
$access_token = check_token(); | |
if($count <= 0) $count = 10; | |
if($count > 100) $count = 100; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SQL { | |
private $where; | |
private $select = '*'; | |
private $limit; | |
private $order_by; | |
private $query; | |
private $set; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Appointment: Проверка ссылок | |
File: away.php | |
Author: Leonid Rezvitsky | |
Данный код защищен авторскими правами | |
*/ | |
include 'php_main/lock.php'; | |
function cc_url_handler($id, $url, $ask = false, $s = false) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( $_FILES["audio"]["tmp_name"] ) { | |
$file = explode('.', $_FILES["audio"]); | |
$filter = ('mp3'); | |
if (in_array($file['1'], $filter)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function SetOnline($access_token) { | |
$ch = curl_init('https://api.ivinete.ru/method/account.setOnline?access_token='.$access_token); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); | |
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); | |
$result = curl_exec($ch); | |
curl_close($ch); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$screen_name = isset($_REQUEST['screen_name']) ? secure($_REQUEST['screen_name']) : false; | |
$access_token = check_token(); | |
if ($screen_name) { | |
$row_screen_name = mysqli_fetch_assoc(mysqli_query($sqlConnect, "SELECT user_id FROM ". T_USERS ." WHERE username = '$screen_name' LIMIT 1 ")); | |
$type = 'user'; | |
$object_id = $row_screen_name['user_id']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function json_encode_cyr($array) { | |
$str = json_encode($array, JSON_UNESCAPED_UNICODE | JSON_NUMERIC_CHECK); | |
return $str; | |
} | |
$array = array( | |
'id' => 1, | |
'login' => 'test', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$screen_name = isset($_REQUEST['screen_name']) ? secure($_REQUEST['screen_name']) : false; | |
$access_token = check_token(); | |
$result = array(); | |
if (!$screen_name) { | |
error(2, 'not found screen_name'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
margin: 0; | |
padding: 0; | |
font-family: Arial; | |
font-size: 15px; | |
} | |
html, body { | |
background: url('/img/background.png'); | |
background-repeat: repeat-x; |