Добавить материал и получить бесплатное свидетельство о публикации в СМИ
Эл. №ФС77-60625 от 20.01.2015
Инфоурок / География / Презентации / Мс454645646464

Мс454645646464


  • География

Поделитесь материалом с коллегами:

<?php /* Copyright 1999 by John Martin d/b/a www.ANYPORTAL.com */ /* All Rights Reserved. */ /* */ /* This software is freeware and is not in the public domain. */ /* You are hereby granted the right to freely distribute this */ /* software as long as this copyright notice remains in place. */ /* */ /* Comments or suggestions? email: andmore@alief.com */ /* */ /* This is the PHP port: AnyPortal(php)-0.1 */ /* ======================================== */ /* */ /* PHP version 2000 by Stefan@Wiesendanger.org */ /* No Rights Reserved. What for, anyhow ? */ /* */ /* Date Remarks */ /* --------- ----------------------------------------------- */ /* 25 MAY 99 original ASP version */ /* 17 SEP 99 change upload from SA-FILEUP to aspSmartUpload */ /* 10 APR 00 simplified PHP3 version */ /* 18 APR 00 most of PHP3 port working. Slight modifications */ /* 22 APR 00 modified syntax highlighting, no absolute paths */ /* revealed, PHP builtin authentication, global */ /* style sheet as callback, use apache default */ /* icons as an alternative to the wingdings font. */ /* 25 APR 00 catch some exceptions (not foolproof yet) */ /* 26 APR 00 catch some more exceptions, implicit copy */ /* function by saving somewhere else in the detail */ /* view, MD5 hashed password. */ /* 27 APR 00 Fixed authentication bug */ /* 12 MAY 00 Fixed trouble with exec() with newer versions of */ /* PHP3. Fixed bug which would send you to a non- */ /* existent address after file modifications. */ ////////////////////////////////////////////////////////////////// // TODO : Don't let the file be modified itself. Create a hash of // it (kinda hard since it's self-referential ;-). Make better use // of session management. Escapeshellcmd for all user input. ////////////////////////////////////////////////////////////////// // GLOBAL PARAMETERS // ================= // Make modifications here to suit siteman to your needs // error_reporting(4) ; // how verbose ? // username/password should not be system // usernames/passwords !! // your (hashed) username/password here $gblPw = "hash_of_your_username_and_password" ; $gblAuth = false ; // use builtin authentication $gblHash = "md5" ; // hash function to use // choose GifIcon below unless you have the M$ // WingDings font installed on your system $gblIcon = "GifIcon" ; // MockIcon or GifIcon // the directory below should be /icons/ or /icons/small/ // on Apache; a set of icons is included in the distribution $gblIconLocation = "icons/" ; // files you want to be able to edit in text mode // and view with (primitive) syntax highlighting $gblEditable = array( ".txt",".asa",".asp",".htm",".html", ".cfm",".php3",".php",".phtml", ".shtml",".css" ) ; // files that will display as images on the detail page // (useless if your browser doesn't support them) $gblImages = array( ".jpg",".jpeg",".gif",".png",".ico", ".bmp",".xbm") ; ////////////////////////////////////////////////////////////////// function StartHTML($title,$text="") { $title = "Site Manager " . $title ; $host = $GLOBALS["HTTP_HOST"] ; $self = $GLOBALS["PHP_SELF"] ; ?> <?php echo $host . " " . $title ?> 

<?php echo $host ?>

<?php echo $title ?>

<?php echo $text ?>

<?php } // end function StartHTML ////////////////////////////////////////////////////////////////// function EndHTML() { ?>

<?php echo date("D, F d, Y") ?> - <?php echo date("g:i:sA") ?>
ANYPORTAL(php) Site Manager - © 1999 by ANYPORTAL - © 2000 by d@nger.org




<?php } // end function EndHTML ////////////////////////////////////////////////////////////////// function CSS() { ?> BODY,TD,P,H1,H2,H3 { font-family:Helvetica,Arial,sans-serif; } .BLK { color:black; } .RED { color:red; } .TOP { color:red; font-size:70%; } /* table headings */ .INV { color:white; background-color:navy; font-weight:bold; font-size:120%; } /* title */ .FTR { } /* footer */ .LST { background-color:#E0E0E0; } /* table cells */ .BAR { background-color:#E0E0E0; } /* action bar */ PRE { color:blue; font-family:Lucida Console,Courier New, Courier,sans-serif; } /* source code */ EM { color:green; font-style:normal; } /* line numbers */ .REM { color:silver; } .XML { color:navy; background-color:yellow; } .MCK { color:red; font-family:WingDings; } /* Mock Icons */ A:HOVER { color:red; } <?php } // end function CSS ////////////////////////////////////////////////////////////////// function DetailPage($fsRoot,$relDir,$fn) { global $gblEditable, $gblImages ; $self = $GLOBALS["PHP_SELF"] ; $relPath = $relDir . "/" . $fn ; $fsPath = $fsRoot . $relPath ; $fsDir = $fsRoot . $relDir ; $exists = file_exists($fsPath) ; $ext = strtolower(strrchr($relPath,".")) ; $editable = ( $ext=="" || strstr(join(" ",$gblEditable),$ext)) ; $writable = Writeable($fsPath) ; if (!$editable && !$exists) Error("Creation unsupported for type",$relPath) ; if (!exists && !Writeable($fsDir) ) Error("Creation denied",$relDir) ; $text = "Use this page to view, modify or " ; $text .= "delete a single document on this " ; $text .= "web site." ; $title = "(Detail Page)" ; StartHTML($title, $text) ; echo "

" . $relDir . "/" . $fn . "

" ; if ($exists) { // get file info $fsize = filesize($fsPath) ; $fmodified = date("d/M/y G:i:s", filemtime($fsPath)) ; $faccessed = date("d/M/y G:i:s", fileatime($fsPath)) ; echo "
 file size: " . $fsize . " Bytes
" ; echo "last modified: " . $fmodified . "
" ; echo "last accessed: " . $faccessed . "
" ; echo " owner: " . fileowner($fsPath) . "
" ; echo " group: " . filegroup($fsPath) . "
" ; echo " permissions: " ; echo printf( "%o", fileperms($fsPath) ) . "" ; echo "
" ; } if ( $editable && ($writable || !$exists) ) { $fh = fopen($fsPath,"a+") ; rewind($fh) ; $fstr = fread($fh,filesize($fsPath)) ; fclose($fh) ; $fstr = htmlentities( $fstr ) ; ?> DOCUMENT CONTENTS
<?php echo($fstr) ; ?> <?php } else if ( strstr( join(" ",$gblImages), $ext ) ) { $info = getimagesize($fsPath) ; $tstr = "\""" ; echo htmlentities($tstr) . "

" . $tstr ; } ?>
<?php if ($exists && $writable) { ?>
OK TO DELETE "<?php echo $fn ; ?>"? <?php } echo "" ; EndHTML() ; } // end function DetailPage ////////////////////////////////////////////////////////////////// function DisplayCode($fsRoot,$relDir,$fn) { $path = $fsRoot . $relDir . "/" . $fn ; if (!file_exists($path)) Error("File not found",$path) ; StartHTML("(".$relDir."/".$fn.")",""); $tstr = join("",file($path)) ; $tstr = htmlentities($tstr) ; // Tabs $tstr = str_replace(chr(9)," ",$tstr) ; // ASP tags & XML/PHP tags $aspbeg = "<%" ; $aspend = "%>" ; $tstr = str_replace("<%",$aspbeg,$tstr) ; $tstr = str_replace("%>",$aspend,$tstr) ; $xmlbeg = "<?" ; $xmlend = "?>" ; $tstr = str_replace("<?",$xmlbeg,$tstr) ; $tstr = str_replace("?>",$xmlend,$tstr) ; // C style comment $tstr = str_replace("/*","/*",$tstr) ; $tstr = str_replace("*/","*/",$tstr) ; // HTML comments $tstr = str_replace("<!--","<!--",$tstr) ; $tstr = str_replace("-->","-->",$tstr) ; echo "
" ; $tstr = split("\n",$tstr) ; for ($i = 0 ; $i < sizeof($tstr) ; ++$i) { // add line numbers echo "
" ; echo substr(("000" . ($i+1)), -4) . ": " ; $line = $tstr[$i] ; // C++ style comments $pos = strpos($line,"//") ; // exceptions: two slashes aren't a script comment if (strstr($line,"//") && ! ($pos>0 && substr($line,$pos-1,1)==":") && ! (substr($line,$pos,8) == "//-->") && ! (substr($line,$pos,9) == "// -->")) { $beg = substr($line,0,strpos($line,"//")) ; $end = strstr($line,"//") ; $line = $beg."".$end.""; } // shell & asp style comments $first = substr(ltrim($line),0,1) ; if ($first == "#" || $first == "'") { $line = "".$line.""; } print($line) ; } // next i echo "
" ; EndHTML() ; } // end function DisplayCode ////////////////////////////////////////////////////////////////// function MockIcon($txt) { $tstr = "" ; switch (strtolower($txt)) { case ".bmp" : case ".gif" : case ".jpg" : case ".jpeg": case ".tif" : case ".tiff": $d = 176 ; break ; case ".doc" : $d = 50 ; break ; case ".exe" : case ".bat" : $d = 255 ; break ; case ".bas" : case ".c" : case ".cc" : case ".src" : $d = 255 ; break ; case "file" : $d = 51 ; break ; case "fldr" : $d = 48 ; break ; case ".htm" : case ".html": case ".asa" : case ".asp" : case ".cfm" : case ".php3": case ".php" : case ".phtml" : case ".shtml" : $d = 182 ; break ; case ".pdf" : $d = 38 ; break; case ".txt" : case ".ini" : $d = 52 ; break ; case ".xls" : $d = 252 ; break ; case ".zip" : case ".arc" : case ".sit" : case ".tar" : case ".gz" : case ".tgz" : case ".Z" : $d = 59 ; break ; case "view" : $d = 52 ; break ; case "up" : $d = 199 ; break ; case "blank" : return "  " ; break ; default : $d = 51 ; } return $tstr . chr($d) . "" ; } // end function MockIcon ////////////////////////////////////////////////////////////////// function GifIcon($txt) { global $gblIconLocation ; switch (strtolower($txt)) { case ".bmp" : case ".gif" : case ".jpg" : case ".jpeg": case ".tif" : case ".tiff": $d = "image2.gif" ; break ; case ".doc" : $d = "layout.gif" ; break ; case ".exe" : case ".bat" : $d = "screw2.gif" ; break ; case ".bas" : case ".c" : case ".cc" : case ".src" : $d = "c.gif" ; break ; case "file" : $d = "generic.gif" ; break ; case "fldr" : $d = "dir.gif" ; break ; case ".phps" : $d = "phps.gif" ; break ; case ".php3" : $d = "php3.gif" ; break ; case ".htm" : case ".html": case ".asa" : case ".asp" : case ".cfm" : case ".php3": case ".php" : case ".phtml" : case ".shtml" : $d = "world1.gif" ; break ; case ".pdf" : $d = "pdf.gif" ; break; case ".txt" : case ".ini" : $d = "text.gif" ; break ; case ".xls" : $d = "box2.gif" ; break ; case ".zip" : case ".arc" : case ".sit" : case ".tar" : case ".gz" : case ".tgz" : case ".Z" : $d = "compressed.gif" ; break ; case "view" : $d = "index.gif" ; break ; case "up" : $d = "back.gif" ; break ; case "blank" : $d = "blank.gif" ; break ; default : $d = "generic.gif" ; } return "\"$gblIconLocation"" ; } // end function GifIcon ////////////////////////////////////////////////////////////////// function Navigate($fsRoot,$relDir) { global $gblEditable, $gblIcon ; $self = $GLOBALS["PHP_SELF"] ; $webRoot = "http://" . $GLOBALS["SERVER_NAME"] ; $fsDir = $fsRoot . $relDir . "/" ; // current directory if (!is_dir($fsDir)) Error("Dir not found",$relDir) ; // read directory contents if ( !($dir = @opendir($fsDir)) ) Error("Read Access denied",$relDir) ; while ($item = readdir($dir)) { if ( $item == ".." || $item == "." ) continue ; if ( is_dir($fsDir . $item) ) { $dirList[] = $item ; } else if ( is_file($fsDir . $item) ) { $fileList[] = $item ; } else { // unknown file type // $text = "Could not determine file type of " ; // Error("File Error", $text.$relDir."/".$item) ; // exit ; } } closedir($dir) ; $emptyDir = ! (sizeof($dirList) || sizeof($fileList)) ; // start navigation page $text = "Use this page to add, delete or " ; $text .= "revise files on this web site." ; StartHTML("(Navigate)",$text) ; echo "
OK TO DELETE THIS EMPTY FOLDER?

CREATE NEW DIRECTORY -OR- FILE :    NAME OR UPLOAD A FILE
<?php EndHTML() ; } // end function Navigate ////////////////////////////////////////////////////////////////// function UploadPage($fsRoot, $relDir) { $self = $GLOBALS["PHP_SELF"] ; if ($relDir == "") $relDir = "/" ; ?>

PATHNAME OF LOCAL FILE

If the [BROWSE...] button is not displayed,
you must upgrade to an RFC1867-compliant browser.

Your browser:
<?php echo $GLOBALS["HTTP_USER_AGENT"] ?>


<?php } // end function UploadPage ////////////////////////////////////////////////////////////////// function Error($title,$text="") { StartHTML("(".$title.")",$text) ; echo "

Hit your Browser's Back Button.

" ; EndHTML() ; exit ; } // end function Error ////////////////////////////////////////////////////////////////// function Writeable($path) { // fix by -mat- filid brandy, brandy@ecrc.de, 07/JUL/99 clearstatcache ; $perms = @fileperms($path) ; $owner = @fileowner($path) ; exec("id",$id) ; eregi( "^uid=([0-9]*)",$id[0], $regs) ; $apacheuid = $regs[1] ; $perms = 0777 & $perms ; if ( $apacheuid != $owner ) { return (06 == (06 & $perms)) ? 1 : 0 ; } else { return (0600 == (0600 & $perms)) ? 1 : 0 ; } } // end function Writable ////////////////////////////////////////////////////////////////// function CreateHash($user, $pw) { global $gblHash ; // hash function to use if ($user == "" || $pw == "") { $text = "either no password or no username supplied" ; Error("Create Hash",$text) ; } $title = "(Create Hash)" ; StartHTML($title) ; echo "

" ; echo "

Copy the value below and paste it " ; echo "into the
value for \$gblPw in the source of " ; echo "this file

" . $gblHash($user.$pw) ; echo "

Hash function: " . $gblHash ; echo "
" ; EndHTML() ; exit ; } // end function CreateHash ////////////////////////////////////////////////////////////////// function NoEntry() { $user = $GLOBALS["PHP_AUTH_USER"] ; $pw = $GLOBALS["PHP_AUTH_PW"] ; $self = $GLOBALS["PHP_SELF"] ; $title = "(401 Unauthorized)" ; $text = "No trespassing !" ; StartHTML($title,$text) ; ?>
If you are a site administrator:

Click below to generate a password hash
from the username-password pair you just
entered. Then include the hash in the source
of this file.

<?php EndHTML() ; exit ; } ////////////////////////////////////////////////////////////////// // MAIN PROGRAM // ============ // query parameters: capital letters // local functions : begin with capital letters // global constants: begin with gbl $gblFilePerms = "644" ; // default for new files $gblDirPerms = 0755 ; // default for new dirs // phpinfo() ; // exit ; // forks before authentication: style sheet and hash // creation if password not yet set. if ($STYLE == "get") { CSS() ; exit ; } if ($HASH != "") { CreateHash($USER, $PW) ; exit ; } // authentication if $gblAuth == true if ( $gblAuth && $gblHash($PHP_AUTH_USER.$PHP_AUTH_PW) != $gblPw ) { header("WWW-authenticate: basic realm=\"$SERVER_NAME\"") ; header("HTTP/1.0 401 Unauthorized") ; NoEntry() ; exit ; } // get current directory relative to $gblFsRoot $relDir = $DIR ; // from POST if ($relDir == "") { // not defined in POST ? $relDir = urldecode($D) ; // then use GET } if ($relDir == "/") $relDir = "" ; // default : website root = "" if (strstr($relDir,"..")) Error("No updirs allowed"); // full paths contain "fs" or "Fs". Paths realitve to root of // website contain "rel" or "Rel". The script won't let you // edit anything above directory equal to http://server.com // i.e. below $gblFsRoot. $relScriptDir = dirname($SCRIPT_NAME) ; // i.e. /siteman $fsScriptDir = dirname($SCRIPT_FILENAME) ; // i.e. /home/httpd/html/siteman $gblFsRoot = substr($fsScriptDir,0, strlen($fsScriptDir)-strlen($relScriptDir)) ; // i.e. /home/httpd/html $fsDir = $gblFsRoot . $relDir ; // current directory if ( !is_dir($fsDir) ) Error("Dir not found",$relDir) ; switch ($POSTACTION) { case "UPLOAD" : if (!Writeable($fsDir)) Error("Write denied",$relDir) ; if (strstr($FN_name,"/")) Error("Non-conforming filename") ; // TODO : should rather check for escapeshellcmds // but maybe RFC 18xx asserts safe filenames .... $source = $FN ; $target = $fsDir . "/" . $FN_name ; exec("cp $source $target") ; exec("chmod $gblFilePerms $target") ; clearstatcache() ; break ; case "SAVE" : $path = $gblFsRoot . escapeshellcmd($RELPATH) ; $writable = Writeable($path) ; $legaldir = Writeable(dirname($path)) ; $exists = (file_exists($path)) ? 1 : 0 ; // check for legal extension here as well if (!($writable || (!$exists && $legaldir))) Error("Write denied",$RELPATH) ; $fh = fopen($path, "w") ; fwrite($fh,$FILEDATA) ; fclose($fh) ; clearstatcache() ; break ; case "CREATE" : // we know $fsDir exists if (!Writeable($fsDir)) Error("Write denied",$relDir) ; $path = $fsDir . "/" . $FN ; // file or dir to create $relPath = $relDir . "/" . $FN ; switch ( $T ) { case "D" : // create a directory if ( ! @mkdir($path,$gblDirPerms) ) Error("Mkdir failed",$relPath) ; // eg. if it exists clearstatcache() ; break ; case "F" : // create a new file // this functionality is doubled in DetailView(). // better keep it here altogether // chmod perms to $gblFilePerms if ( file_exists($path) && !Writable($path) ) Error("File not writable", $relPath) ; $tstr = $PHP_SELF . "?A=E&D=" . $relDir . "&F=" . $FN ; header("Location: " . $tstr) ; exit ; } break ; case "DELETE" : if ( $CONFIRM != "on" ) break ; $tstr = "Attempt to delete non-existing object or " ; $tstr .= "insufficient privileges: " ; if ( $FN != "") { // delete file $path = $fsDir . "/" . $FN ; if ( ! @unlink($path) ) { Error("File delete failed", $tstr . $path) ; exit ; } } else { // delete directory if ( ! @rmdir($fsDir) ) { Error("Rmdir failed", $tstr . $fsDir) ; } else { $relDir = dirname($relDir) ; // move up } } break ; default : // user hit "CANCEL" or undefined action } // common to all POSTs : redirect to directory view ($relDir) if ( $POSTACTION != "" ) { $tstr = $PHP_SELF . "?D=" . urlencode($relDir) ; header("Location: " . $tstr) ; exit ; } // check for mode.. navigate, code display, upload, or detail? // $A=U : upload to path given in $D // $A=E : display detail of file $D/$F and edit // $A=C : display code in file $D/$F // default : display directory $D switch ($A) { case "U" : // upload to $relDir if (!Writeable($gblFsRoot . $relDir)) Error("Write access denied",$relDir) ; $text = "Use this page to upload a single " ; $text .= "file to $SERVER_NAME." ; StartHTML("(Upload Page)", $text) ; UploadPage($gblFsRoot, $relDir) ; EndHTML() ; exit ; case "E" : // detail of $relDir/$F DetailPage($gblFsRoot, $relDir, $F) ; exit ; case "C" : // listing of $relDir/$F DisplayCode($gblFsRoot, $relDir, $F) ; exit ; } // default: display directory $relDir Navigate($gblFsRoot,$relDir) ; exit ; Error("Whooah!","By cartesian logic, this never happens") ; ?>

Краткое описание документа:

Жалпы білім беретін пәндер бойынша үлгерім көрсеткіштері

Бағалар

5

4

3

2

І ж.ж

ІІ ж.ж

жылдық

І ж.ж

ІІ ж.ж

жылдық

І ж.ж

ІІ ж.ж

жылдық

І ж.ж

ІІ ж.ж

жылдық

Саны

40

38

38

57

62

62

3

-

-

-

-

-

Пайызы

40.0

38,0

38,0

57.0

62,0

62,0

3.0

-

-

-

-

-





Арнаулы білім беретін пәндер бойынша үлгерім көрсеткіштері

Бағалар

5

4

3

2

І ж.ж

ІІ ж.ж

жылдық

І ж.ж

ІІ ж.ж

жылдық

І ж.ж

ІІ ж.ж

жылдық

І ж.ж

ІІ ж.ж

жылдық

Саны

104

103

112

116

117

112

-

-

-

-

-

-

Пайызы

51.0

52,0

50,0

49.0

48,0

50,0

-

-

-

-

-

-







Жалпы үлгерім көрсеткіштері

Бағалар

5

4

3

2

І ж.ж

ІІ ж.ж

жылдық

І ж.ж

ІІ ж.ж

жылдық

І ж.ж

ІІ ж.ж

жылдық

І ж.ж

ІІ ж.ж

жылдық

Саны

144

141

150

173

179

174

3

-

-

-

-

-

Пайызы

43.0

41,0

44,0

55.5

59,0

56,0

1.5

-

-

-

-

-

-







Арал көпсалалы колледжінің 2014/2015 оқу жылындағы №246 ферма шаруашылығы, жеміс-көкөніс өсіруші мамандығы оқушыларының үлгерім көрсеткіштері

«3»

«4»

«5»

«3»%

«4»%

«5»%







Оқу тобы жетекшісі : Ш. Балманова

Өндірістік оқу шебері : И. Рзагазиева.

Скач
Автор
Дата добавления 21.06.2015
Раздел География
Подраздел Презентации
Просмотров288
Номер материала 309494
Получить свидетельство о публикации

Похожие материалы

Включите уведомления прямо сейчас и мы сразу сообщим Вам о важных новостях. Не волнуйтесь, мы будем отправлять только самое главное.
Специальное предложение
Вверх