Exemplo n.º 1
0
		    <div class="">
			    <ul class="nav navbar-nav">
					<li class="dropdown <?php 
if (getPage() != "") {
    echo 'active';
}
?>
">
			          <a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php 
echo t('repos');
?>
 <span class="caret"></span></a>
			          <ul class="dropdown-menu scrollable-dropdown" role="menu">
			        	<?php 
// for ($i=0; $i < 20; $i++) {
foreach (getReposList() as $key => $repo) {
    ?>
						  		<li <?php 
    if ($repo == getRepo()) {
        echo 'class="active"';
    }
    ?>
 ><a href="<?php 
    echo getUrl('repo', "", true, array('repo' => $repo, 'rev' => '', 'rev2' => ''));
    ?>
"><?php 
    echo $key;
    ?>
</a></li>
						  		<?php 
}
Exemplo n.º 2
0
// HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
// Date dans le passé
require 'functions.php';
require 'routing.php';
if (isset($routes[getPage()]["headers"])) {
    foreach ($routes[getPage()]["headers"] as $key => $value) {
        header($value);
    }
} else {
    header('Content-Type: text/html; charset=utf-8');
}
if (@$routes[getPage()]['page'] != "index") {
    //requireAuth();
}
if (@$routes[getPage()]["container"] == true or !isset($routes[getPage()]["container"])) {
    include 'themes/' . get('Theme') . '/header.php';
}
if (intval(get('MaxSizeTmpDir')) != 0 && filesize(get('TmpPath')) > intval(get('MaxSizeTmpDir'))) {
    include 'themes/' . get('Theme') . '/max-tmp.php';
}
if (!file_exists('themes/' . get('Theme') . '/' . $routes[getPage()]['page'] . '.php')) {
    include 'themes/' . get('Theme') . '/404-page.php';
} elseif (getRepo() != "" and !in_array(getRepo(), getReposList())) {
    include 'themes/' . get('Theme') . '/404-repo.php';
} else {
    include 'themes/' . get('Theme') . '/' . $routes[getPage()]['page'] . '.php';
}
if (@$routes[getPage()]["container"] == true or !isset($routes[getPage()]["container"])) {
    include 'themes/' . get('Theme') . '/footer.php';
}