diff options
author | Andreas Gohr <andi@splitbrain.org> | 2006-02-17 23:20:40 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2006-02-17 23:20:40 +0100 |
commit | 98c868589ee0757f176239cf289cbd007bb74852 (patch) | |
tree | eb48a172b0f1a423b93ffff35f8adf8d579383c1 /lib | |
parent | 1c73890c5027011d808d38c583561abc309e8086 (diff) | |
download | rpg-98c868589ee0757f176239cf289cbd007bb74852.tar.gz rpg-98c868589ee0757f176239cf289cbd007bb74852.tar.bz2 |
file cleanups
This patch cleans up the source code to satisfy the coding guidelines (see
http://wiki.splitbrain.org/wiki:development#coding_style)
It converts files to UNIX lineendings and removes tabs and trailing
whitespace. Not all files were cleaned yet.
darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exe/detail.php | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/lib/exe/detail.php b/lib/exe/detail.php index a090039cb..0b6af379b 100644 --- a/lib/exe/detail.php +++ b/lib/exe/detail.php @@ -14,47 +14,47 @@ $IMG = getID('media'); $ID = cleanID($_REQUEST['id']); - if($conf['allowdebug'] && $_REQUEST['debug']){ - print '<pre>'; - foreach(explode(' ','basedir userewrite baseurl useslash') as $x){ - print '$'."conf['$x'] = '".$conf[$x]."';\n"; - } - foreach(explode(' ','DOCUMENT_ROOT HTTP_HOST SCRIPT_FILENAME PHP_SELF '. + if($conf['allowdebug'] && $_REQUEST['debug']){ + print '<pre>'; + foreach(explode(' ','basedir userewrite baseurl useslash') as $x){ + print '$'."conf['$x'] = '".$conf[$x]."';\n"; + } + foreach(explode(' ','DOCUMENT_ROOT HTTP_HOST SCRIPT_FILENAME PHP_SELF '. 'REQUEST_URI SCRIPT_NAME PATH_INFO PATH_TRANSLATED') as $x){ - print '$'."_SERVER['$x'] = '".$_SERVER[$x]."';\n"; - } - print "getID('media'): ".getID('media')."\n"; + print '$'."_SERVER['$x'] = '".$_SERVER[$x]."';\n"; + } + print "getID('media'): ".getID('media')."\n"; print "getID('media',false): ".getID('media',false)."\n"; - print '</pre>'; - } + print '</pre>'; + } $ERROR = false; // check image permissions $AUTH = auth_quickaclcheck($IMG); if($AUTH >= AUTH_READ){ // check if image exists - $SRC = mediaFN($IMG); + $SRC = mediaFN($IMG); if(!file_exists($SRC)){ //doesn't exist! - - } - }else{ + + } + }else{ // no auth - $ERROR = p_locale_xhtml('denied'); + $ERROR = p_locale_xhtml('denied'); } /*if(!$ERROR){ // load EXIF/IPTC/image details $INFO = array(); - $INFO['std'][''] - imagesize + $INFO['std'][''] + imagesize }*/ //start output and load template header('Content-Type: text/html; charset=utf-8'); include(template('detail.php')); - + //restore old umask umask($conf['oldumask']); |