Exemplo n.º 1
0
 public function doUrl()
 {
     if ($this->urlInput->checkPost()) {
         $url = $this->urlInput->getUrl();
         // ----------------- //
         $curler = new Curler();
         $startPage = new StartPage($url, $curler);
         $startPage->getStartLinks();
         // days every body can
         $calander = new Calander($url . $startPage->getCalanderLink(), $curler);
         $daysEvaeyBodyCan = $calander->getDayEverybodyCan();
         $cinema = new Cinema($url . $startPage->getCinemaLink(), $curler, $daysEvaeyBodyCan);
         $filmsForXDays = $cinema->getMoviesFromDays();
         $dataPresenter = new PresentDataView();
         $this->html = $dataPresenter->generateHTML($filmsForXDays);
     } else {
         $this->html = $this->urlInput->generateInputField();
     }
 }
Exemplo n.º 2
0
<?php

/*
 * Created on 20.03.2007
 *
 * This is the main entry page to the web-application
 * 
 * Licenced under GPL: http://www.gnu.org/licenses/gpl.txt
 *
 */
require_once 'classes/autoload.php';
$page = new StartPage();
$page->render();
Exemplo n.º 3
0
include_once "startpage_class.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
 <head>
  <meta name="generator" content="PSPad editor, www.pspad.com" />
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <link href="<?php 
echo BASE_URL;
?>
/startpage.css" type="text/css" rel="stylesheet" />
  <title><?php 
echo "Changelog " . str_replace(XMLLOGNAME, "", $changelogName);
?>
</title>
 </head>
 <body>
 <div id="main">
<?php 
echo "<h1>Changelog " . str_replace(XMLLOGNAME, "", $changelogName) . "</h1>";
StartPage::changeLog($changelog, false);
?>
<p class="foot"><?php 
echo "Generated:" . date(DATE_RFC822);
?>
</p>
</div>
</body>
</html>
Exemplo n.º 4
0
            set_time_limit(0);
            svn_update();
            header("Location: index.php");
            exit;
        case "info":
            ob_start();
            phpinfo();
            preg_match('%<style type="text/css">(.*?)</style>.*?(<body>.*</body>)%s', ob_get_clean(), $matches);
            # $matches [1]; # Style information
            # $matches [2]; # Body information
            echo "<div id='main'><div id='info'>";
            echo $matches[2] . "\n</div>\n";
            echo "</div></div>";
            exit;
        case "errors":
            StartPage::showErrorLog();
            exit;
    }
}
setlocale(LC_ALL, 'cs_CZ', 'cz');
?>
<div id="main"><!--
        <ul id="tabnav">
            <li class="tab1"><a href="?node=dash">Dashboard</a></li>
            <li class="tab2"><a href="?node=log">Changelog</a></li>
            <li class="tab3"><a href="?node=review">Review</a></li>
            <li class="tab4"><a href="?node=deploy">Deployment</a></li>
            <li class="tab5"><a href="?node=admin">Administration</a></li>
        </ul>
        --> <?php 
if (isset($_GET['node'])) {
Exemplo n.º 5
0
</li>
           <li>MBSTRING: <?php 
echo StartPage::checkExt("mbstring");
?>
</li>
           <li>EXIF: <?php 
echo StartPage::checkExt("exif");
?>
</li>
           <li>MYSQL: <?php 
echo StartPage::checkExt("mysql");
?>
</li>
           <li>PosgreSQL: <?php 
echo StartPage::checkExt("pgsql");
?>
</li>
           <li>XSL: <?php 
echo StartPage::checkExt("xsl");
?>
</li>
           <li>ICONV: <?php 
echo StartPage::checkExt("iconv");
?>
</li>

           </ul>
            </div>
        <div style="clear:both;"></div>
  </div>
Exemplo n.º 6
0
 /**
  * Lists of projects, in $root directory can used some mask
  * @param string $root
  * @return mixed
  */
 public function listProject($root, $url)
 {
     echo "<p><strong>Working copies at {$root}</strong></p>";
     echo "<table id='wc'>";
     echo "<tr class='firstrow'><th>Name</th><th>SCM</th><th>Links</th>\n        <th>Last record from history</th></tr>";
     foreach (glob($root . PROJECT_FILTER, GLOB_ONLYDIR) as $dirs) {
         echo "<tr>";
         echo "<td class='name' id='" . basename($dirs) . "'>\n            <a href='" . $url . basename($dirs) . "'>" . basename($dirs) . "</a></td>";
         // xmllog is name with path etc. /tmp/start_page_cheangelog.xml
         // build by hook post-commit script
         $xmllog = $dirs . XMLLOGNAME;
         echo "<td  class='log'>";
         if (file_exists($dirs . '/.svn')) {
             $output = shell_exec("svn info {$dirs} | grep 'URL' | awk '{print \$2}'");
             echo "<a href='" . $output . "'>SVN</a>";
         }
         if (file_exists($dirs . '/.git')) {
             echo "GIT";
         }
         if (file_exists($dirs . '/.hg')) {
             if (file_exists($dirs . '/.hg/hgrc')) {
                 $q = "cat " . $dirs . "/.hg/hgrc | egrep 'default =' | awk '{ print \$3 }'";
                 $hgrc = shell_exec($q);
                 if (isset($hgrc)) {
                     echo "<a href='" . $hgrc . "'>HG</a>";
                 } else {
                     echo "HG";
                 }
             } else {
                 echo "HG";
             }
         }
         echo "</td>";
         if (file_exists($xmllog)) {
             echo "<td class='log'>";
             echo "<a href='" . BASE_URL . "changelog.php?file={$xmllog}'>Log</a> ";
             echo "<a href='" . WIKI_LINK . basename($dirs) . "'>Wiki</a>";
             //echo "<a href='changelog.php?rep=".substr($dirs, strpos($dirs, "/")+1,strlen($dirs))."'>Log</a>
             echo "</td>";
         } else {
             echo "<td></td>";
         }
         // This part is for last revision (display rev and message)
         if (file_exists($xmllog)) {
             StartPage::changeLog($xmllog, true, basename($dirs));
         }
         //
         echo "</tr>";
     }
     echo "</table>";
 }