*
* Code may be re-used as long as the above copyright notice is retained.
* See README.txt for full details.
*
* Written with Coda:
Blockquotes\n". "```Code```
Code\n\n". "`inline-code`
' . __('Image uploading has been disabled on this installation.') . '
'; } else { $html .= "\n"; } // list files in UPLOAD_FOLDER $path = PAGES_PATH . "/". UPLOAD_FOLDER . "/*"; $imgNames = glob($path); natcasesort($imgNames); $html .= "".__('Total').": ".count($imgNames)." ".__('images')."
"; $html .= "".(($sortBy!='name')?("Name"):"Name")." | ". "".(($sortBy!='recent')?("Modified"):"Modified")." | ". */ "".__("Name")." | ".__("Usage")." | ".__("Modified")." | ".__("Action")." | ". "
".basename($imgName)." | ". "".imageLinkText(basename($imgName))." | ".
"".__('Delete')." | ". "
".imageLinkText($dstName)."to refer to it!"; } else { $error_code = $_FILES['userfile']['error']; if ( $error_code === 0 ) { // Likely a permissions issue $msg .= __('Upload error') .": Can't write to ".$path."
".__('Total').": ".count($pageNames)." ".__("pages")."
"; $html .= "".(($sortBy!='name')?("Name"):"".__('Name')."")." | ". "".(($sortBy!='recent')?("".__('Modified').""):"".__('Modified')."")." | ". "".__('Action')." | ". "|
".pageLink($pageName, $pageName)." | ". "".getPageActions($pageName, $action,"-dark")." | ". /* dark mode */ "".getPageActions($pageName, $action, "")." | ". /* light mode */ "
$matches ".__('matches')."
\n"; } else { $html .= empty($text) ? '' : toHTML($text); } $datetime = ''; if ( ($action === 'all')) { $title = __("All"); } else if ( $action === 'upload' ) { $title = __("Upload"); } else if ( $action === 'new' ) { $title = __("New"); } else if ( $action === 'search' ) { $title = __("Search"); } else if ($filename != '') { $title = (($action === 'edit')? (__('Edit').": "):"") . $page; $date_format = __('date_format', TITLE_DATE); if ( $date_format ) { $datetime = "" . date($date_format, @filemtime($filename)) . ""; } } else { $title = __($action); } // Disable caching on the client (the iPhone is pretty agressive about this // and it can cause problems with the editing function) header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past printHeader($title, $action); print " \n"; print " \n"; if (SIDEBAR_PAGE != '') { print " \n"; } if ($action === 'view' && $_GET['linkshere']) { print "