Exemplo n.º 1
0
Arquivo: admin.php Projeto: nhck/sofa
}
?>
		</hgroup>
	</header>
	<div class="content">
		<div class="left">
			<?php 
if (isset($_SESSION['user']) && $_SESSION['user']) {
    include 'panel.inc.php';
} else {
    if (isset($_GET['action']) && $_GET['action'] == 'lost_passwd') {
        include 'lost_passwd.inc.php';
    } else {
        include 'login.inc.php';
    }
}
?>
		</div>
		<div class="right">
<?php 
write_table();
$sql = null;
?>
</div>
	</div>
	<footer>
		<p>fuer die sache.</p>
	</footer>
</body>
</html>
Exemplo n.º 2
0
$index = scan($folder);
$comics = only_comic_files($index);
usort($comics, function ($a, $b) {
    return strcmp("{$a->in_uri}/{$a->date}", "{$b->in_uri}/{$b->date}") < 0;
});
$rss = array_slice($comics, 0, $rss_max);
$random = $comics;
shuffle($random);
// write DB tables
write_table($db, '', 'newest', current($comics));
write_atom($rss);
write_table($db, '', 'comics', $comics);
write_table($db, '', 'random', $random);
write_table($db, 'nav', 'all', $index);
write_table($db, 'nav', 'folders', only_folders($index));
write_table($db, 'nav', 'comics', only_comics($index));
/* missing indexes:

	by-uri
*/
/* flatten into comics-only listing */
function only_comic_files($index, $admin = false)
{
    $files = array();
    foreach ((array) $index as $k => $v) {
        if ($v->is_hidden) {
            continue;
        }
        if ($v->is_folder) {
            $files = array_merge($files, only_comic_files($v->files, $admin));
        }
Exemplo n.º 3
0
}
body,td,th {
	color: #FFFFFF;
}
-->
</style>
</head>
<body>
<div id="head">
  <h1>oreore imakoko</h1>
    <p>
    	<img src="recent.png" alt="the lastest positon" height="20" width="20" />:the lastest positon<br>
        <img src="hist.png" alt="the past position" height="20" width="20" />:
	</p>
   </div>
  <div id="map_canvas"></div>
  <div id="postable">
  <table id="pos">
  <tr>
    <th width="37">&nbsp;</th>
    <th class="head" width="380">date</th>
    <th class="head" width="380">position</th>
  </tr>
<?php 
write_table($d);
?>
</table>
</div>
</body>
</html>