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 real_ip() | |
{ | |
if( $_SERVER['HTTP_X_FORWARDED_FOR'] != '' ) | |
{ | |
$client_ip = | |
( !empty($_SERVER['REMOTE_ADDR']) ) ? | |
$_SERVER['REMOTE_ADDR'] | |
: | |
( ( !empty($_ENV['REMOTE_ADDR']) ) ? |
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 Singleton extends MySQLDB | |
{ | |
/////////////////////////////////////////////////////// | |
private static $connection = null; | |
private static $instance = null; | |
private static $array = null; |
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 | |
/** | |
* Пользователь | |
* Может редактировать только свои сообщения | |
* Удалять сообщения не может | |
* | |
* Менеджер | |
* Может редактировать свои сообщения и собщения других пользователей | |
* Удалять сообщения не может | |
* |
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
selectCss = function() { | |
var Sc = { | |
ObjSelect: $("selectCss"), | |
ThisObj: null, | |
src: null, | |
placeholder: null, | |
name: null, | |
options: null, | |
thisClassCss: null, |
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
function Step (step, step_line, step_wrap, step_but, step_function_check, step_function_done, step_function_end) { | |
var Sl = { | |
stepCheck: null, | |
stepline: null, | |
stepLength: null, | |
stepNow: null, | |
stepBut: null, | |
stepFunctionCheck: null, |
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
////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// GLOBAL_url_js = url("Temp_All_product", "funct2.js"); // путь до дополнительного файла js | |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
$(document).ready(function() { | |
window.SERVER_url = '/SERVER/SERVER.php'; // 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
function DoAnim (obct, options, opt, array, times, funct) { | |
var Do = { | |
object: null, | |
sleep: null, | |
animArr: null, | |
options: null, | |
funct: null, | |
object: function(obj, options, global_options, funct) { |
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 TestReg($text) { | |
$on = array('q','w', 'e', 'r', 't', 'y', 'u', 'i', 'o', 'p', 'a', 's', | |
'd', 'f', 'g', 'h', 'j', 'k', 'l', 'z', 'x', 'c', 'v', 'b', 'n', 'm'); | |
$ap = array('Q','W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S', | |
'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B', 'N', 'M'); | |
$array = str_split($text); | |
foreach ($array as $value) { |
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 | |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
// PDO подключение к базе данных | |
////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
class MySQLDatabaseAd { | |
private $connection; | |
private $result; |
NewerOlder