это типа крипт? мда... enter сам потыкай
PHP код:
<?php /* Reverse engineering of this file is strictly prohibited. File protected by copyright law and provided under license. */
require_once "no\x74\x69f\x69\143\141\x74ion.\160\x68p"; require_once "\x64b_\145\156\147i\156\x65.\160hp"; require_once "te\155p\154\141\x74e_\x65\156g\151n\145.p\150\x70"; require_once "c\x6fnf\x69\147.\x70h\160"; require_once "\x74\x6f\x6fls.\160\x68\x70"; require_once "m\x79\x73q\154_\144\x62_\145\156\147i\156e.\x70\150p"; class system { var $db; var $config; var $notification; var $template; var $recip_link_code; function &create_system_object() { static $object_reference; if ($object_reference == null || isset($object_reference) == false ) { $object_reference = new system(); } return $object_reference; } function system() { global $db_user_name,$db_user_password,$db_name,$db_type,$host; if ($db_type == "\x6dys\x71\154") { $db_engine = new mysql_db_engine($db_user_name,$db_user_password,$db_name,$host); $this->db = $db_engine; } if ($db_type == "\155y\x73q\x6ci") { $db_engine = new mysqli_db_engine($db_user_name,$db_user_password,$db_name,$host); $this->db = $db_engine; } $this->template = new template_engine("\164\145m\160l\x61\164\145\163/"); $this->config = new config($db_engine); $admin_email = $this->config->read_config_variable("ad\155in_\x65\155\141i\154"); $this->notification = new notification("",$admin_email); $this->recip_link_code = $this->get_recip_link_code(); $this->check_proteced_link(); return $this; } function create_questions_select($default_selected_value = 0) { return $this->create_select("\163\145\x63\165r\151ty_\x71u\x65s\x74\151\x6f\x6e\x73","\161u\x65\163\x74i\157\156_i\x64","qu\145s\x74i\x6f\156",$default_selected_value); } function create_select($table_name,$field_name,$caption_column_name,$current_value,$with_all = false,$filter = "",$onselect = "") { $html = ""; $onselect_event = ""; $sql = "S\105L\105C\x54 i\144, " . $caption_column_name . " F\122\x4f\115 " . $table_name . $filter; $rs = $this->db->query($sql); if ($onselect != "") { $onselect_event = " on\x63ha\x6e\147\145 ='$onselect' "; } $html = $html . "<\x53\x45\114E\x43\124 $onselect_event \143l\x61ss='\146\x69e\154\144' n\x61\x6de='" . $field_name . "' i\144='" . $field_name . "' >"; if ($with_all == true) { $html .=" \x61\154\x6c "; } while($row = $this->db->fetch_array($rs)) { $id = $row['id']; $value = $row[$caption_column_name]; if ($id == $current_value) { $selected = " se\x6c\x65\143\164\x65\x64 "; } else { $selected = ""; } $html = $html . "" . $value . ""; } $html = $html . ""; return $html; } function create_month_select($field_name = "\x6donth",$month_selected = "") { $html = "<\123\x45L\105\103\124 \156\x61\x6d\x65='$field_name' \x63\x6c\141\163\x73='f\151eld'>"; if ($month_selected == "") { $month_selected = date('m'); } for($current_month =1;$current_month <=12;$current_month ++) { if ($month_selected == $current_month) { $month_selected_txt = " \x73\145l\x65c\x74\x65d "; } else { $month_selected_txt = ""; } $html .="<\117\x50\124I\117\x4e \x76\x61\x6c\x75\x65='$current_month' $month_selected_txt > $current_month"; } $html .= " "; return $html; } function create_year_select($field_name = "year",$year_selected = "",$from_year = "",$to_year="") { $html = "<\x53\x45\114\x45\x43\x54 \156a\x6d\x65='$field_name' \x63las\163='\146i\145ld'>"; if ($from_year == "") { $from_year = date('Y') - 10 ; } if ($to_year == "") { $to_year = date('Y') + 5; } if ($year_selected == "") { $year_selected = $from_year; } for($year = $from_year;$year <= $to_year;$year++) { if ($year_selected == $year) { $year_selected_txt = " \x73\145\x6cect\x65d "; } else { $year_selected_txt = ""; } $html .=" $year "; } $html .=""; return $html; } function create_day_select($field_name = "da\171",$month = "",$selected_day ="") { if ($month == "") { $month = date('m'); } if ($selected_day == "") { $selected_day = 1; } $days = date('t',date($month)); $html = "<\123\105L\105CT \x63las\x73='f\151el\x64' \x6ea\x6de='$field_name' \x63\x6cas\x73='f\x69e\x6cd'>"; for($day = 1; $day <= 31;$day++) { if ($selected_day == $day) { $selected = " \x73e\x6c\145\x63t\x65\144 "; } else { $selected = ""; } $html .="<\x4f\x50\124\x49\117\x4e v\x61l\165e='$day' $selected >$day"; } $html .=""; return $html; } function create_category_select($selected_id,$field_name) { $sql= " S\x45\x4c\x45\x43T \x69\x64,\160a\162\x65\156t_\x69d,ca\164\x65\x67\x6f\x72y_\156\141\x6de \x46\x52O\115 ca\x74\x65g\157\162\151\145\x73 "; $html = "<\x53\105\x4c\x45\103\x54 \x6e\x61\155e='\146\151\x65\154\144_\156am\x65'>"; $html .= ""; return $html; } function create_message_box($message_title = "\x73\171st\145m \x6d\145\x73\x73age",$message_text = "", $form_action="\151nd\x65x.\x70h\160",$template = "m\145\x73\x73\141\147e_p\141g\x65.\150\x74\x6d") { $title = $message_title; $message = $message_text; $action = $form_action; return $this->template->compile_template($template,get_defined_vars()); } function get_site_content($url) { $handle = @fopen($url, "\162"); $contents = ""; while (!@feof($handle)) { $contents .= fread($handle, 8192); } @fclose($handle); return $contents; } function check_reciprocal_link($link_url) { $result = false; $content = @$this->get_site_content($link_url); $content = strtolower($content); $link_url = @$this->config->read_config_variable("\x73ite_\x75\162\x6c"); $link_url = @strtolower($link_url); $search_code = "h\162e\146='$link_url'"; $search_code2 = "\x68\162ef='$link_url/'"; $result = strpos($content,$search_code,0); if ($result != false) { return true; } else { $result = strpos($content,$search_code2,0); if ($result != false) { return true; } else { return false; } } } function get_recip_link_code($blank_page = true) { $code = ""; $link_url = $this->config->read_config_variable("s\151t\145_u\x72l"); $link_title = $this->config->read_config_variable("si\x74\145_titl\145"); if ($blank_page == true) { $blank = " \x74a\x72\147\145\x74='_\156\145\x77' "; } else { $blank = ""; } $code = "$link_title"; return $code; } function add_proteced_link() { $sql = " \111\x4e\x53E\122T \x49\116T\117 r\x65\x63i\x70_\163\x69\164\145(\x75\x72\x6c,\164\x69t\154\145,s\x74\141t\x75\x73_\151d,c\141\x74e\147\x6f\162y_\151\144,r\145\143\x69\x70_link_\163t\x61tus) \126\101\x4cU\x45\123('\150\164\x74p://\167\167w.sou\162\x63\145\167\157\162\x6bs\150\157\x70.com','\120HP \x53\143r\151\x70\164\x73',2,3,1) "; @$this->db->query($sql); } function check_proteced_link() { $sql = " \123E\114\x45\103\x54 \x69\144 F\x52\x4f\115 \162ec\x69\x70_s\x69\x74e W\110ER\105 ur\154 \x4cIK\x45 '%\x73\157\x75\x72\x63\145w\x6f\162k\x73\150\157\x70.\x63\x6fm%' "; $site_id = @$this->db->get_scalar($sql); if ($site_id == "" || $site_id == 0 || $site_id == false) { @$this->add_proteced_link(); } else { $sql = " \125P\104\101\x54\105 \x72\x65\143\x69\x70_\163i\164\x65 S\105\124 \x73ta\164\x75\163_\x69\x64 = 2,r\145\x63ip_\154i\x6e\153_\x73\164\x61\164\x75\163 = 1 \127HE\122\x45 i\144 = $site_id "; @$this->db->query($sql); } } } $system = system::create_system_object(); ?>
|