Exemple #1
0
 public function autoCache($config = array())
 {
     $config = array_merge(array(match_etag => true, match_modified => true, last_modified => true, expires => true, etags => true, cache => true, gzip => false, maxAge => 1000), $config);
     $id = md5($html);
     $this->lastModified = getlastmod();
     $this->maxAge = $config["maxAge"] * 24 * 60 * 60;
     $this->expires = $this->lastModified + $this->maxAge;
     $this->etag = dechex($this->lastModified);
     $this->cacheControl = "must-revalidate, proxy-revalidate, max-age=" . $this->maxAge . ", s-maxage=" . $this->maxAge;
     if ($config["last_modified"]) {
         $this->setLastModifiedHeader();
     }
     if ($config["expires"]) {
         $this->setExpiresHeader();
     }
     if ($config["etags"]) {
         $this->setETagsHeader();
     }
     if ($config["cache"]) {
         $this->setCacheControlHeader();
     }
     if ($config["match_modified"] || $config["match_etag"]) {
         $this->getIfModified();
     }
     echo $html;
 }
Exemple #2
0
function setupNavigation($data)
{
    global $NEXT, $PREV, $UP, $HOME, $TOC, $tstamp;
    $HOME = @$data["home"];
    $HOME[0] = "./";
    $NEXT = @$data["next"];
    $PREV = @$data["prev"];
    $UP = @$data["up"];
    $TOC = @$data["toc"];
    $tstamp = gmdate("D, d M Y", getlastmod());
}
Exemple #3
0
/**
 * Fills global variables with navigational links.
 *
 * @param array $data Array containing home, next, prev, up and toc keys.
 *
 * @return void
 */
function setupNavigation($data)
{
    global $NEXT, $PREV, $UP, $HOME, $TOC, $tstamp;
    $HOME = @$data['home'];
    $HOME[0] = './';
    $NEXT = @$data['next'];
    $PREV = @$data['prev'];
    $UP = @$data['up'];
    $TOC = @$data['toc'];
    $tstamp = gmdate('D, d M Y', getlastmod());
}
Exemple #4
0
 public function __construct()
 {
     $this->config = array('filename' => basename(__FILE__), 'username' => '', 'password' => '', 'interpreter' => 'shell_exec', 'current_user' => get_current_user(), 'hostname' => function_exists('gethostname') ? gethostname() : $_SERVER['HTTP_HOST'], 'server_address' => isset($_SERVER['SERVER_ADDR']) ? $_SERVER['SERVER_ADDR'] : '127.0.0.1', 'server_port' => $_SERVER['SERVER_PORT'], 'request_time' => $_SERVER['REQUEST_TIME'], 'php_owner_uid' => getmyuid(), 'php_owner_gid' => getmygid(), 'php_process_id' => getmypid(), 'inode_script' => getmyinode(), 'last_page_modification' => getlastmod(), 'cwd' => getcwd());
     if (isset($_SESSION['interpreter'])) {
         $this->config['interpreter'] = $_SESSION['interpreter'];
     }
     if (isset($_SESSION['cwd']) && $_SESSION['cwd'] != $this->config['cwd']) {
         chdir($_SESSION['cwd']);
         $this->config['cwd'] = getcwd();
     }
     $this->config['prompt'] = $this->get_prompt();
 }
Exemple #5
0
 function getFiles($path)
 {
     static $list;
     // Only process the list once per request
     if (is_array($list)) {
         return $list;
     }
     $path = JPath::clean($path, '/');
     $folder = JPath::check(JPATH_ROOT . '/' . $path);
     if (!is_readable($folder)) {
         return false;
     }
     $files = array();
     $folders = array();
     $docs = array();
     $extensions = array('jpg', 'png', 'gif', 'jpeg');
     // Get upload files if any
     include 'getuploads.php';
     // Iterate over the files if they exist
     foreach (JFolder::files($folder) as $file) {
         $extension = strtolower(pathinfo($folder . '/' . $file, PATHINFO_EXTENSION));
         if (!in_array($extension, $extensions)) {
             continue;
         }
         $tmp = new stdClass();
         $tmp->name = $file;
         $tmp->path = $path . '/' . $file;
         $tmp->url = JURI::root() . $path . '/' . $file;
         $tmp->size = filesize(JPATH_ROOT . '/' . $tmp->path);
         $tmp->date = date("Y-m-d H:i:s", getlastmod(JPATH_ROOT . '/' . $tmp->path));
         $tmp->isimage = true;
         $info = getimagesize(JPATH_ROOT . '/' . $tmp->path);
         $tmp->width = $info[0];
         $tmp->height = $info[1];
         $tmp->type = $info[2];
         $tmp->mime = $info['mime'];
         $tmp->thumbnailUrl = $this->getThumbnailUrl($tmp, 60, 60);
         $files[] = $tmp;
     }
     return $files;
 }
Exemple #6
0
 *   2002-2005 PukiWiki Developers Team
 *   2001-2002 Originally written by yu-ji
 */
//error_reporting(0); // Nothing
error_reporting(E_ERROR | E_PARSE);
// Avoid E_WARNING, E_NOTICE, etc
ini_set('zlib.output_compression', 'Off');
// Style
$menubar = isset($_GET['menubar']) ? $_GET['menubar'] : '';
$expire = isset($_GET['expire']) ? (int) $_GET['expire'] * 86400 : '604800';
// Default is 7 days.
// Send header
header('Content-Type: text/css; charset: UTF-8');
header('Cache-Control: private');
header('Expires: ' . gmdate('D, d M Y H:i:s', time() + $expire) . ' GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', getlastmod()) . ' GMT');
@ob_start('ob_gzhandler');
?>
/**************************************************************************************************/
/* anchor tag */
a:not(.btn):not([role="presentation"]) {
	color:#215dc6;
	background-color:inherit;
	text-decoration:none;
}

a:not(.btn):not([role="presentation"]):active {
	color:#215dc6 !important;
}

a:not(.btn):not([role="presentation"]):visited {
Exemple #7
0
    function getHeader($bannerText = '')
    {
        if ($this->headerSent() || core_getOption('CLI')) {
            return;
        }
        $this->parse_GET();
        if ($bannerText) {
            $this->bannerText = $bannerText;
        }
        if ($_SERVER["HTTPS"] == 'on') {
            $this->ref = $this->refSSL;
        } else {
            $this->ref = $this->home;
        }
        if (!$this->headerToShow) {
            $this->menuToShow = False;
        }
        if (!$this->menuToShow) {
            $this->alignCenter = True;
        }
        if (!$this->title) {
            $this->title = strip_tags($this->bannerText);
        }
        #preg_replace("/^<.*>(.*)<.*>$/",'\1',$this->bannerText);
        if (!$this->revision) {
            $this->revision = date("Ymd", getlastmod());
        }
        $fullWidth = !$this->menuToShow ? 'wide-' : '';
        if ($a = $GLOBALS["authClass"]) {
            if ($a->authenticated()) {
                unset($this->loginPage);
            }
        }
        if (FALSE) {
            if ($l = $this->loginPage) {
                $this->loginIcon = "<a href='" . $l . "'><img src='img/user_locked_16x16.png' border='0' alt='login'></a>";
            }
        } else {
            $moo = new moo();
            if ($l = $this->loginPage) {
                $this->loginIcon = $moo->popup("<img src='img/user_locked_16x16.png' border='0' alt='login'>", $l, True, True, True);
            }
        }
        if ($_GET["modal"] != 'yes') {
            ?>
<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://www.w3.org/TR/html4/strict.dtd'>
<html lang='en'>
  <head>
    <title><?php 
            echo $this->title;
            ?>
</title>
    <meta http-equiv='content-type'        content='text/html; charset=utf-8'>
    <meta http-equiv='content-style-type'  content='text/css'>
    <meta http-equiv='content-script-type' content='text/javascript'>
    <meta http-equiv='pragma'              content='no-cache'>
    <meta http-equiv='cache-control'       content='no-cache, must-revalidate'>
    <meta http-equiv='expires'             content='0'>
    <meta http-equiv='imagetoolbar'        content='no'>
    <meta name='robots'                 content='index,follow'>
    <meta name='author'                 content='<?php 
            echo $this->author;
            ?>
'>
    <meta name='date-revision-yyyymmdd' content='<?php 
            echo $this->revision;
            ?>
'>
    <meta name='description'            content='NORDITA - Nordic Institute for Theoretical Physics'>
    <meta name='keywords'               content='NORDITA, Nordic Institute for Theoretical Physics, nordic, theoretical physics, physics, astrophysics, nuclear physics, astrobiology, high energy physics, condensed matter physics, condensed matter, string theory, particle physics, '>
    <link rel='shortcut icon' href='img/favicon_star.png'>
    <link type='text/css' rel='stylesheet' media='screen' href='css/screen.css'>
    <link type='text/css' rel='stylesheet' media='print'  href='css/print.css'>
<?php 
            $this->getJS_CSS();
            ?>
    <script type='text/javascript'>if (self != top) top.location=self.location</script>
  </head>
  <body>
<?php 
            $this->norditaHead();
            $this->menu();
            ?>
    <div id='container-<?php 
            print $fullWidth;
            ?>
body'>
      <div id='block-main'>
        <hr class='hidden'>
        <div id='div-main-content'>
<?php 
        }
        $this->headerSent('yes');
    }
 <div id="FOOTER"> 
  <p align="center"><img src="images/hr.gif" alt="" width="400" height="30"></p>
  <p><a href="http://indyslair.net/bishen/"><img src="images/button3.jpg" alt="Bishen Realm" width="88" height="31" border="0"></a></p>
  <p><?php 
echo "Page Last Modified on " . date("F d Y", getlastmod());
?>
<br>
    Bishel Dragons &copy;2001-<?php 
echo date("Y");
?>
 <a href="http://indyslair.net/bishen/">Indyana</a>.<br>
    Layout and Story <a href="/rhul/copyright.php">&copy;2003-<?php 
echo date("Y");
?>
</a> 
    <a href="/rhul/contact.php">Bright Promise</a>.</p>
</div></div></div>
</body>
</html>
Exemple #9
0
     $sql = 'SELECT MAX(UNIX_TIMESTAMP(`date`)) as `tstamp` FROM `' . $forum_table . "` WHERE `trash` = '0'";
 }
 $mod_db_time = 0;
 if (isset($sql)) {
     $res = mysql_query($sql);
     if (!$res) {
         die(mysql_error());
     }
     while ($row = mysql_fetch_array($res, MYSQL_ASSOC)) {
         $tmp_time = $row['tstamp'];
         $mod_db_time = $mod_db_time > $tmp_time ? $mod_db_time : $tmp_time;
     }
 }
 // modified time of this file
 $mod_cache_inc_file_time = filemtime($_SERVER['SCRIPT_FILENAME']) ? filemtime($_SERVER["SCRIPT_FILENAME"]) : filemtime($_SERVER['PATH_TRANSLATED']);
 $mod_parent_file_time = getlastmod();
 // modified time of the parent file
 $mod_file_time = $mod_cache_inc_file_time > $mod_parent_file_time ? $mod_cache_inc_file_time : $mod_parent_file_time;
 // get the latest
 $mod_time = $mod_file_time > $mod_db_time ? $mod_file_time : $mod_db_time;
 $mod_gmt = gmdate('D, d M Y H:i:s', $mod_time) . ' GMT';
 // convert to GMT format
 // if it is same with "if_modified_since" from request header, stop output
 if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])) {
     $if_modified_since = preg_replace('/;.*$/', '', $_SERVER['HTTP_IF_MODIFIED_SINCE']);
     if ($if_modified_since == $mod_gmt) {
         header($_SERVER['SERVER_PROTOCOL'] . ' 304 Not Modified');
         ob_end_clean();
         exit;
     }
 }
Exemple #10
0
function make_footer()
{
    ?>

<div class="search">
  <!-- Google CSE Search Box Begins  -->
  <form action="http://www.google.com/cse" id="cse-search-box">
    <input type="hidden" name="cx" value="012399064992308798676:e_bxmf5nqrq">
    <input type="text" name="q" size="25">
    <input type="submit" name="sa" value="Search">
  </form>
  <script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=en"></script>
  <!-- Google CSE Search Box Ends -->
</div>

<hr>
<i>Site Created By:</i>
<!-- <a href="mailto:libmesh-users@lists.sourceforge.net">libMesh Developers</a><br> -->
<a href="http://libmesh.sourceforge.net/developers.php">libMesh Developers</a><br>
<?php 
    // Newer versions of PHP require you to set the default timezone or a warning message is printed
    date_default_timezone_set('UTC');
    ?>
<i><?php 
    echo "Last modified: " . date("F d Y H:i:s", getlastmod());
    echo " UTC";
    ?>
</i>

<br>
<br>
<i>Hosted By:</i>
<br>
<A href="http://sourceforge.net">
<IMG src="http://sourceforge.net/sflogo.php?group_id=71130&amp;type=1" width="88" height="31" border="0" alt="SourceForge.net Logo"></A>

<!-- Google Analytics stuff -->
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24978333-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
									    
<?php 
}
   protected function _finish_body()
   {
       $page = $this->page;
       $options = $page->template_options;
       $browser = $this->env->browser();
       if ($options->close_logger) {
           $this->env->logs->close_all();
       }
       ?>
   </div>
   <?php 
       if ($options->footer_visible && !$browser->is(Browser_previewer)) {
           ?>
   <div class="footer">
   <?php 
           /* Build the left side of the footer with the copyright and version info. */
           $lines = array();
           if ($options->show_links) {
               $lines[] = '<div class="footer-links">' . $this->_links_as_text($options) . '</div>';
           }
           if ($options->copyright) {
               $lines[] = '<div class="copyright">' . $options->copyright . '</div>';
           }
           if ($options->show_versions) {
               $lines[] = '<div class="versions">' . $this->_versions_as_text($options) . '</div>';
           }
           if ($options->show_last_time_modified) {
               $date = new DATE_TIME(getlastmod());
               $f = $date->formatter();
               $f->set_type_and_clear_flags(Date_time_format_short_date_and_time);
               $lines[] = '<div class="modification-time">Last modified on ' . $date->format($f) . '</div>';
           }
           if ($options->show_statistics) {
               $lines[] = '<div class="statistics">' . $this->_page_statistics_as_text($options) . '</div>';
           }
           echo '<div class="footer-data">';
           echo join('</div><div class="footer-data">', $lines);
           echo '</div>';
           $this->_handle_browser_warnings($options, false);
           ?>
   </div>
   <?php 
       }
       ?>
 </div>
 <?php 
       parent::_finish_body();
   }
 function Joom_Output($file, $filename, $cache, $mime, $show, $image, $quali = 95)
 {
     //Writes header || Gibt den Header der neuen Bilddatei heraus
     header("Pragma: public");
     //Writes header information for caching || Gibt die Header Informationen fuer Dateien aus, die in den gecached werden duerfen
     if ($cache == 'cache') {
         header("Last-Modified: " . gmdate('D, d M Y H:i:s', getlastmod()) . " GMT");
         header("Cache-Control: public, max-age=3600");
         header("Cache-Control: pre-check=3600, FALSE");
         header("Expires: " . gmdate('D, d M Y H:i:s', time() + 3600) . " GMT ");
         //Writes header information for non caching || Gibt die Header Informationen fuer Dateien aus, die nicht gecached werden duerfen
     } else {
         header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
         header("Pragma: no-cache");
         header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
         header("Cache-Control: post-check=0, pre-check=0, false");
         header('Expires: 0');
     }
     //header("Content-Transfer-Encoding: binary");
     if ($image == "file") {
         header("Content-Length: " . filesize($file));
         header("Accept-Ranges: bytes");
     }
     header("Content-type: {$mime}");
     header("Content-Disposition: {$show}; filename={$filename}");
     //Checks if file is a image to be generated with php || Ueberprueft ob die Datei ein Bild ist, das erst noch von PHP erzeugt werden muss
     if ($image == 'image') {
         switch ($mime) {
             case 'image/gif':
                 imagegif($file);
                 break;
             case 'image/png':
                 imagepng($file);
                 break;
             case 'image/jpeg':
                 imagejpeg($file, '', $quali);
                 break;
             default:
                 exit;
                 break;
         }
         imagedestroy($file);
     } else {
         readfile($file);
     }
     exit;
 }
Exemple #13
0
 session_start();
 header('Expires: ' . gmdate('D, d M Y H:i:s \\G\\M\\T', time() + 60 * 60 * 24 * 364));
 $page = isset($_GET['page']) ? $_GET['page'] : 'Home';
 $objUsr = new Sintax\Core\AnonymousUser();
 if (isset($_SESSION['usuario'])) {
     //$objUsr=$_SESSION['usuario'];
     $usrClass = get_class($_SESSION['usuario']);
     if ($usrClass != "__PHP_Incomplete_Class") {
         $objUsr = $_SESSION['usuario'];
     } else {
         unset($_SESSION['usuario']);
     }
 }
 /* css Js Libs ********************************************************************/
 $arrFilesModTime = array();
 $arrFilesModTime[$_SERVER['SCRIPT_FILENAME']] = getlastmod();
 //Fecha de modificacion del punto de entrada
 $arrFilesModTime[__FILE__] = filemtime(__FILE__);
 //Fecha de modificacion de este fichero
 $arrFilesModTime[SKEL_ROOT_DIR . "includes/server/start.php"] = filemtime(SKEL_ROOT_DIR . "includes/server/start.php");
 ob_start();
 foreach ($ARR_CLIENT_LIBS as $libPath) {
     $arrFilesModTime[$libPath] = filemtime($libPath);
     require $libPath;
 }
 $cssLinkTags = ob_get_clean();
 if ($cssLinkTags != "") {
     $hrefs = array();
     try {
         $doc = new DOMDocument();
         $doc->loadHTML($cssLinkTags);
Exemple #14
0
 * @reference
 * @license http://www.gnu.org/copyleft/lesser.txt GNU Lesser General Public License
 */
// common definitions and initial processing
include_once '../shared/global.php';
// load localized strings
i18n::bind('codes');
// load the skin
load_skin('codes');
// the path to this page
$context['path_bar'] = array('help/' => i18n::s('Help index'), 'codes/' => i18n::s('Formatting Codes'));
// the title of the page
$context['page_title'] = i18n::s('In-line formatting codes');
// the date of last modification
if (Surfer::is_associate()) {
    $context['page_details'] .= '<p class="details">' . sprintf(i18n::s('Edited %s'), Skin::build_date(getlastmod())) . '</p>';
}
// page header
$context['text'] .= '<p>' . i18n::s('On this page we are introducing some formatting codes and live examples of utilization.') . '</p>';
// add a toc
$context['text'] .= "\n" . '[toc]' . "\n";
// **...**
$context['text'] .= '[title]' . i18n::s('Wiki bold') . ' [escape]**...**[/escape][/title]' . Skin::table_prefix('wide') . Skin::table_row(array(i18n::s('Example'), i18n::s('Rendering')), 'header') . '<tr><td class="sample">[escape]' . i18n::s('This is very **important**, isn\'t it?') . '[/escape]</td>' . '<td>' . i18n::s('This is very **important**, isn\'t it?') . '</td></tr>' . Skin::table_suffix();
// [b]...[/b]
$context['text'] .= '[title]' . i18n::s('Bold') . ' [escape][b]...[/b][/escape][/title]' . Skin::table_prefix('wide') . Skin::table_row(array(i18n::s('Example'), i18n::s('Rendering')), 'header') . '<tr><td class="sample">[escape]' . i18n::s('This is very [b]important[/b], isn\'t it?') . '[/escape]</td>' . '<td>' . i18n::s('This is very [b]important[/b], isn\'t it?') . '</td></tr>' . Skin::table_suffix();
// //...//
$context['text'] .= '[title]' . i18n::s('Wiki italics') . '  [escape]//...//[/escape][/title]' . Skin::table_prefix('wide') . Skin::table_row(array(i18n::s('Example'), i18n::s('Rendering')), 'header') . '<tr><td class="sample">[escape]' . i18n::s('This is really //meaningful//!') . '[/escape]</td>' . '<td>' . i18n::s('This is really //meaningful//!') . '</td></tr>' . Skin::table_suffix();
// [i]...[/i]
$context['text'] .= '[title]' . i18n::s('Italics') . '	[escape][i]...[/i][/escape][/title]' . Skin::table_prefix('wide') . Skin::table_row(array(i18n::s('Example'), i18n::s('Rendering')), 'header') . '<tr><td class="sample">[escape]' . i18n::s('This is really [i]meaningful[/i]!') . '[/escape]</td>' . '<td>' . i18n::s('This is really [i]meaningful[/i]!') . '</td></tr>' . Skin::table_suffix();
// __...__
$context['text'] .= '[title]' . i18n::s('Wiki underline') . '  [escape]__...__[/escape][/title]' . Skin::table_prefix('wide') . Skin::table_row(array(i18n::s('Example'), i18n::s('Rendering')), 'header') . '<tr><td class="sample">[escape]' . i18n::s('I would like to __insist__ on this point...') . '[/escape]</td>' . '<td>' . i18n::s('I would like to __insist__ on this point...') . '</td></tr>' . Skin::table_suffix();
Exemple #15
0
 public function buildConfigOfPage($field = "", $value = "")
 {
     // ---------------------------------------------------------------------------
     // -- (1) Start with default values for $this->configOfPage[]
     // ---------------------------------------------------------------------------
     $this->setConfigOfPageToDefault();
     // ---------------------------------------------------------------------------
     // -- (2) Include file with configuration data for all subsites.
     //        Exit with default values if no configuration file for SUBSITE exists.
     // --> Updates $this->configOfPage[]
     //     $this->configOfPage["boxes"][]
     //     $this->configOfPage["startpage"][]
     //     $this->configOfPage["scripts-head"][]
     // ---------------------------------------------------------------------------
     if (!file_exists(INCLEVEL . PATH_SITES . "/" . SUBSITE . "/config_" . SUBSITE . ".php")) {
         return false;
     }
     include_once PATH_SITES . "/" . SUBSITE . "/config_" . SUBSITE . ".php";
     // ---------------------------------------------------------------------------
     // -- (3) Include layout file for SUBSITE;
     // --> //$GLOBALS[SUBSITE]["menus"]
     //     $GLOBALS[SUBSITE]["stylesheets"]
     //     $GLOBALS[SUBSITE]["stylesheets-conditional"]
     //     $GLOBALS[SUBSITE]["scripts"]
     //     $GLOBALS[SUBSITE]["scripts-conditional"]
     //     $GLOBALS[SUBSITE]["containers"]
     //     $GLOBALS[SUBSITE]["regions"]
     //     //$GLOBALS[SUBSITE]["classes"]
     //     //$this->configOfPage["boxes"]
     //     //$this->configOfPage["startpage"]
     // ---------------------------------------------------------------------------
     //TODO: Add mechanism for hot layout-switching, eg with $_SESSION["themeselect"] (now: NOP)
     $layoutname = $this->getConfig("layout");
     if (!file_exists(INCLEVEL . PATH_LAYOUT . "/" . DEFAULT_VERSION . "/" . $layoutname . ".php")) {
         $layoutname = DEFAULT_LAYOUT;
     }
     require_once PATH_LAYOUT . "/" . DEFAULT_VERSION . "/" . $layoutname . ".php";
     // ---------------------------------------------------------------------------
     // -- (4) Copy SUBSITE configuration data into $this->configOfPage[]
     // ---------------------------------------------------------------------------
     // -- Remaining configuration arrays
     $keys = array_keys($GLOBALS[SUBSITE]);
     foreach ($keys as $key) {
         if (isset($GLOBALS[SUBSITE][$key]) && $key != "config") {
             $this->setConfig($key, $GLOBALS[SUBSITE][$key]);
         }
     }
     // ---------------------------------------------------------------------------
     // -- (5) Construct additional configuration data in $this->configOfPage[]
     // ---------------------------------------------------------------------------
     // -----------------------
     // -- DATE-REVISION META TAG IN <HEAD>
     //    NB: Alternatively use: date("Ymd",filemtime($_SERVER['SCRIPT_FILENAME']))
     //    Called by: $this->buildPageAuxHead()
     // -----------------------
     //TODO// Neither of the below definitions give the revision date for WIKI pages!
     if (is_file(INCLEVEL . PATH_DOC . "/0-README.txt")) {
         $this->setConfig("revision", date("Ymd", filemtime(INCLEVEL . PATH_DOC . "/0-README.txt")));
         $this->setConfig("revisionRFC", gmdate(RFC_TIME_FORMAT, filemtime(INCLEVEL . PATH_DOC . "/0-README.txt")));
     } else {
         $this->setConfig("revision", date("Ymd", getlastmod()));
         $this->setConfig("revisionRFC", gmdate(RFC_TIME_FORMAT, getlastmod()));
     }
     // -----------------------
     // -- VERSION NUMBER AND LAST MODIFIED DATE
     //    Use last modification date of 'config.php' (where version number is updated)
     //    Called by: colophon::outputColophonFootprint()
     //    Called by: $this->buildPageAuxHead()
     // -----------------------
     $l = array();
     if (defined("MYNAME") && MYNAME != "") {
         $l[] = MYNAME;
     }
     if (defined("SITEVERSION") && SITEVERSION != "") {
         $l[] = SITEVERSION;
     }
     $this->setConfig("appsVersion", implode("-", $l) . (file_exists(INCLEVEL . "config.php") ? "<br>" . date("j M Y", filemtime(INCLEVEL . "config.php")) : ""));
     // ---------------------------------------------------------------------------
     // ...
     // ---------------------------------------------------------------------------
     /* RESTORE if test tabs needed */
     /*
     if (SHOW_TEST_TABS) {
         if (!class_exists("functions",FALSE))  require_once PATH_CLASSES . "/lib/functions.php";
         functions::gpc_declare_input("themeselect","2007",false,array("2007","2011"),true);
       if (!empty($_SESSION["themeselect"])) {
         if (!defined("SUBSITE_BASE_LAYOUT"))
           define("SUBSITE_BASE_LAYOUT","layout".$_SESSION["themeselect"]);
         if (!defined("SUBSITE_BASE_THEME"))
           define("SUBSITE_BASE_THEME", "th-".$_SESSION["themeselect"]);
       }
     } */
     // ---------------------------------------------------------------------------
     // [Legacy code; remove when possible]
     // ---------------------------------------------------------------------------
     if (!defined("SUBSITECRUMB")) {
         define("SUBSITECRUMB", $this->getConfig("crumb"));
     }
 }
Exemple #16
0
 function ubbcode()
 {
     $this->call_time = 0;
     $this->sLastModified = sprintf("%s", date("Y-m-j H:i", getlastmod()));
 }
Exemple #17
0
  </table>
		</td>
  </tr>
  <tr> 
    <td colspan="2"> <hr> </td>
  </tr>
  <tr> 
    <td valign="top"> <div class="footer"> Copyright &copy; 2002 <a href=
              "mailto:cchapin@chipchapin.com?subject=<?php 
echo $pgEmailSubj;
?>
">Chip 
        Chapin</a>,� <a href=
              "http://www.chipchapin.com/" target="_blank">http://www.chipchapin.com</a> 
      </div></td>
    <td align="right"> <div class="date"> 
        Updated 
<?php 
echo strftime("%A %B %d, %Y %T %Z", getlastmod());
if (false) {
    ?>
        <!-- #BeginDate format:Am1 -->December 2, 2002<!-- #EndDate -->
<?php 
}
?>
      </div></td>
  </tr>
</table>
<p>&nbsp;</p>
</body>
<!-- InstanceEnd --></html>
Exemple #18
0
<?php

// vim: et
// Get the modification date of this PHP file
$timestamps = array(@getlastmod());
/*
   The date of prepend.inc represents the age of ALL
   included files. Please touch it if you modify any
   other include file (and the modification affects
   the display of the index page). The cost of stat'ing
   them all is prohibitive. 
*/
$timestamps[] = @filemtime("include/prepend.inc");
// These are the only dynamic parts of the frontpage
$timestamps[] = @filemtime("include/pregen-confs.inc");
$timestamps[] = @filemtime("include/pregen-news.inc");
$timestamps[] = @filemtime("include/version.inc");
$timestamps[] = @filemtime("js/common.js");
// The latest of these modification dates is our real Last-Modified date
$timestamp = max($timestamps);
// Note that this is not a RFC 822 date (the tz is always GMT)
$tsstring = gmdate("D, d M Y H:i:s ", $timestamp) . "GMT";
// Check if the client has the same page cached
if (isset($_SERVER["HTTP_IF_MODIFIED_SINCE"]) && $_SERVER["HTTP_IF_MODIFIED_SINCE"] == $tsstring) {
    header("HTTP/1.1 304 Not Modified");
    exit;
} else {
    header("Last-Modified: " . $tsstring);
}
$_SERVER['BASE_PAGE'] = 'index.php';
include_once 'include/prepend.inc';
Exemple #19
0
<?php

// set default character set
ini_set('default_charset', 'UTF-8');
require_once "../php/logic.php";
$contentProse = "content-prose-1col";
$contentPassphrase = "";
// change layout to accommodate passphrase
if ($passphrase != "") {
    $contentProse = "content-prose";
    $contentPassphrase = "content-passphrase";
}
// get last Modified date of this file
$lastMod = date("F d Y", getlastmod());
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Curtis's Passphrase Generator</title>

    <link href="css/p2.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
Exemple #20
0
<li><a href="lectures/release_early.pdf">release_early.pdf</a></li>
<li><a href="lectures/release_early.odp">release_early.odp</a></li>
<li><a href="http://fossd.anu.edu.au/videos/L2010_15.ogv">2010 video</a> (175M Ogg/Theora)</li>
<li><a href="videos/MOV01B.low.ogv">2009 LQ video</a> (37M Ogg/Theora)</li>
</ul>

<hr>

<a rel="license"
href="http://creativecommons.org/licenses/by-sa/2.5/au/"><img
alt="Creative Commons License" style="border-width:0"
src="http://i.creativecommons.org/l/by-sa/2.5/au/88x31.png"></a><br>
All of these lectures are licensed under a <a rel="license"
href="http://creativecommons.org/licenses/by-sa/2.5/au/">Creative
Commons Attribution-Share Alike 2.5 Australia License</a>.

<p><div align="center">
  <?php 
print " Last modified: ";
$last_modified = getlastmod();
print date("j/m/Y, H:i", $last_modified);
?>
</div><p>

<?php 
include "8440tail.php";
?>



Exemple #21
0
function printHeader($humanTitle, $css, $lang)
{
    header("Last-Modified: " . date("D, d M Y H:i:s", getlastmod()));
    print <<<TOP_STUFF
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
        "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
TOP_STUFF;
    print "\n<html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"{$lang}\">\n    <head>\n\t<title>{$humanTitle}</title>\n\t<meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\" />\n\t<meta name=\"generator\" content=\"BBEdit 8.2\" />\n\t<meta name=\"author\" content=\"Scholarly Technology Group\" />\n\t<meta name=\"description\" content=\"Luise K. Gottsched: Her Life and Work\" />\n\t<meta name=\"keywords\" content=\"Luise Gottsched, women writers, textual culture, Germany, eighteenth century\" />\n\t<link href=\"/projects/Gottsched/includes/{$css}\" type=\"text/css\" rel=\"stylesheet\" />\n";
    print <<<MORE_STUFF1
</head>
  <body class="framework">
    <div class="mainBox"><table width="100%" height="100%" border="1" summary="table used for layout only">
      <tr><td valign="top">
        <table class="navBox" height="10" width="100%" cellspacing="0" cellpadding="1" border="0" summary="table used for layout only">
          <tr>
            <td valign="bottom"><p class="header">
              <span class="head">Luise K. Gottsched: </span>
              <span class="description">A biography</span>
            </p></td>
            <td valign="bottom" colspan="2" align="right">
              <p class="nav">
MORE_STUFF1;
    if (preg_match("/Home/", $humanTitle)) {
        print "<span class=\"selectedNav\"><a class=\"navhead\" href=\"/projects/Gottsched/index.php\">Home</a></span> ";
    } else {
        print "<a class=\"nav\" href=\"/projects/Gottsched/index.php\">Home</a> ";
    }
    print "| <a class=\"nav\" href=\"/projects/Gottsched/topicsSimple.php?selected=main&amp;div2=&amp;div3=&amp;div4=&amp;div5=&amp;div6=\">Topics</a> ";
    if (preg_match("/Primary Texts/", $humanTitle)) {
        print "| <span class=\"selectedNav\"><a class=\"navhead\" href=\"/projects/Gottsched/primaryTexts.php\">Primary Texts</a></span> ";
    } else {
        print "| <a class=\"nav\" href=\"/projects/Gottsched/primaryTexts.php\">Primary Texts</a> ";
    }
    if (preg_match("/About/", $humanTitle)) {
        print "| <span class=\"selectedNav\"><a class=\"navhead\" href=\"/projects/Gottsched/about.php\">About</a></span> ";
    } else {
        print "| <a class=\"nav\" href=\"/projects/Gottsched/about.php\">About</a> ";
    }
    print <<<MORE_STUFF
             </p>
            </td>
          </tr><tr>
            <td valign="bottom" type="div2" class="timelineOne" width="33%">
              <p class="timeNav">
                [<a class="timeNavA" href="chronSimple.php?time=childhood&amp;subtime=childhoodIntro">
                  <span style="border: 0.5px solid #7D3602;">1713-1729: Childhood/Adolescence</span>
                </a>] 
              </p>
            </td>
            <td valign="bottom" type="div2" class="timelineThree" width="33%" align="center">
              <p class="timeNav">
                [<a class="timeNavA" href="chronSimple.php?time=courtship&amp;subtime=courtshipIntro">
                  <span style="border: 0.5px solid #7D3602;">1729-1734: Courtship</span>
                </a>] 
              </p>
            </td>
            <td valign="bottom" type="div2" class="timelineFive" width="33%" align="right">
              <p class="timeNav">
                [<a class="timeNavA" href="chronSimple.php?time=engagement&amp;subtime=engagementIntro">
                  <span style="border: 0.5px solid #7D3602;">1734-1735: Engagement</span>
                </a>] 
              </p>
            </td>
          </tr>
        </table>
        <p></p>
        <table style="background: #FFEBCD;" width="100%" cellspacing="15" summary="table used for layout only" border="0">
          <tr>
MORE_STUFF;
}
Exemple #22
0
<?php

var_dump(getlastmod());
var_dump(getmyinode());
var_dump(getmyuid());
var_dump(getmypid());
var_dump(getmygid());
echo "Done\n";
Exemple #23
0
<?php

## Вывод времени последнего изменения скрипта.
echo "Последнее изменение: " . date("d.m.Y H:i.s.", getlastmod());
// Выводит что-то вроде 'Последнее изменение: 13.11.2015 23:12.36'
Exemple #24
0
function commonFooter($padding = true)
{
    global $RIGHT_SIDEBAR_DATA;
    if ($padding) {
        print "<br />";
    }
    ?>
      </td>
     </tr>
    </table>
   </td>
   <?php 
    if (isset($RIGHT_SIDEBAR_DATA)) {
        ?>
   <td bgcolor="#CCCCCC" style="background-image: url(/gifs/checkerboard.gif)"><?php 
        spacer(1, 1);
        ?>
<br /></td>
   <td width="170" bgcolor="#F0F0F0">
    <table width="100%" cellpadding="4" cellspacing="0">
     <tr valign="top">
      <td class="sidebar">
       <?php 
        echo $RIGHT_SIDEBAR_DATA;
        ?>
      </td>
     </tr>
    </table>
   </td>
   <?php 
    }
    ?>
  </tr>
 </table>

 <table border="0" cellspacing="0" cellpadding="0" width="100%">
  <tr bgcolor="#000033"><td><?php 
    spacer(1, 1);
    ?>
<br /></td></tr>
  <tr bgcolor="#006699">
   <td align="right" valign="bottom">
    <?php 
    //print_link('/source.php?url='.$_SERVER['SCRIPT_NAME'], 'show source', false, 'class="menuWhite"');
    //echo delim();
    print_link('/credits.php', 'credits', false, 'class="menuWhite"');
    ?>
&nbsp;<br />
   </td>
  </tr>
  <tr bgcolor="#000033"><td><?php 
    spacer(1, 1);
    ?>
<br /></td></tr>
 </table>

 <table border="0" cellspacing="0" cellpadding="6" width="100%">
  <tr valign="top" bgcolor="#CCCCCC">
   <td>
    <small>
     <?php 
    print_link('http://www.php.net/', make_image('php-logo.gif', 'PHP', 'left'));
    ?>
     &nbsp;<?php 
    print_link('/copyright.php', 'Copyright &copy; 2001-' . date('Y') . ' The PHP Group');
    ?>
<br />
     &nbsp;All rights reserved.<br />
    </small>
   </td>
   <td align="right">
    <small>
     Last updated: <?php 
    echo strftime("%c %Z", getlastmod());
    ?>
<br />
    </small>
    <br />
   </td>
  </tr>
 </table>
</body>
</html>
<?php 
}
Exemple #25
0
 function readCache($crc32 = null)
 {
     if (!$crc32) {
         $filename = 'cjax.txt';
     } else {
         $filename = $crc32;
     }
     if ($this->config->caching) {
         $dir = sys_get_temp_dir();
     } else {
         $dir = CJAX_HOME . '/core/cache/';
     }
     $dir = rtrim($dir, '/') . '/';
     $file = $dir . $filename;
     if (is_file($file)) {
         if (getlastmod($file) > time() + 3600) {
             return;
             //1 hour to regenerate
         }
         $content = file_get_contents($file);
         if ($content) {
             $content = unserialize($content);
         }
         return $content;
     }
 }
			%%PAGE_CONTENT%%
			
			<div class="clear-floats"></div>
			
		</div>
		
		
	</div>
	
	<div id="copyright">
		
		<p><img src="/images/cc_logo_gray_text.gif" alt="CC Logo"></p>
	
		<p>© <?php 
echo date('Y');
?>
 The Concord Consortium, Inc.  All Rights Reserved.</p>
		
		<p class="updated-info">Last updated: <?php 
echo date('m/d/Y', getlastmod());
?>
</p>
	
	</div>

</div>


</body>
</html>
Exemple #27
0
 public function actionModdate()
 {
     dump(date('F d Y H:i:s', getlastmod()));
 }
Exemple #28
0
     if (file_exists($xmlfile)) {
         unlink($xmlfile);
         myErrorHandler(-1, "Cache removed.", "", "");
     } else {
         myErrorHandler(-1, "Cache not found.", "", "");
     }
 }
 if (file_exists($xmlfile)) {
     // If cached file is older than mov file, or older than qtzrparse.php file, reset cache
     if ($cache == "true" && (filemtime($xmlfile) < filemtime($file) || filemtime($xmlfile) < getlastmod())) {
         $cache = "reset";
     }
 }
 if (file_exists($ofsfile)) {
     // If offsets file does not exist, is older than mov file, or older than qtzrparse.php file, reset cache
     if ($cache == "true" && (filemtime($ofsfile) < filemtime($file) || filemtime($ofsfile) < getlastmod())) {
         $cache = "reset";
     }
 }
 if (!file_exists($xmlfile) || !file_exists($ofsfile) || $cache != "true") {
     // Parse quicktime file
     $fileindex = 0;
     do {
         fseek($fp, $fileindex);
         $atom = fread($fp, 8);
         $atom = unpack("N1size/N1type", $atom);
         $atom["type"] = pack("N", $atom["type"]);
         $fileindex += $atom["size"];
     } while ($atom["type"] != "moov");
     if ($atom["type"] != "moov") {
         e("No 'moov' atom found. Not a Quicktime movie?");
Exemple #29
0
include $_SERVER['DOCUMENT_ROOT'] . '/phpGame/modules/puzzleNavigation.php';
?>
                    <p><?php 
echo $answer_error;
?>
</p>
                    <p><?php 
echo $challenge[0];
?>
</p>
                    <audio controls>
                        <source src='/phpGame/media/morse.wav'>
                    </audio>
                    <?php 
include $_SERVER['DOCUMENT_ROOT'] . '/phpGame/modules/puzzleCheck.php';
?>
                </div>
            </main>
            <footer role='contentinfo'>
                <div>
                    <?php 
include $_SERVER['DOCUMENT_ROOT'] . '/modules/footer.php';
?>
                    <?php 
echo 'Last updated: ' . date('j M Y', getlastmod());
?>
                </div>
            </footer>
        </div>
    </body>
</html>
Exemple #30
0
<!DOCTYPE html>
<html lang="de">
<head>
	<meta http-equiv="Cache-Control" content="max-age=3600, public">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>WPF MW</title>
	<meta name="Content-Language" content="de" />
	<meta name="language" content="Deutsch" />
	<meta name="publisher" content="TH-Koeln" />
	<meta name="description" content="WPFMW Projekt" />
	<meta name="author" content="Harun Sevinc">
	<meta name="date" content="<?php 
echo date('c', getlastmod());
?>
">
	<meta name="keywords" content="">
	<meta name="viewport" content="width=device-width,initial-scale=1.0">
	<link rel="shortcut icon" href="./img/favicon.ico" type="image/vnd.microsoft.icon">
	<link rel="icon" href="./img/favicon.ico" type="image/vnd.microsoft.icon">
	<link rel="stylesheet" href="../css/style.css">
	<link rel="stylesheet" href="../css/bootstrap.min.css">
	<link rel="stylesheet" href="../css/bootstrap-theme.min.css">
</head>
<body>
	<header>
        <h2>
       Willkommen auf VoteMovie
        </h2>    
	</header>