/** Gallery universal controller */
function gallery__HANDLER()
{
    // Call our list controller
    gallery_list();
}
Exemple #2
0
    table.gallery td {
      border: solid 1px;
    }
  </style>
  </head>
  <body>
    <div id="wrap">
      <!-- header or something -->
      <h1>
        Gallery<?php 
if ($directory) {
    echo " : " . htmlspecialchars($directory);
}
?>
      </h1>
      <div id="main">
      <?php 
if ($directory && is_dir("images/{$directory}")) {
    gallery("images/{$directory}");
} else {
    gallery_list("images");
}
?>
      </div>
      <div id="footer">
        <hr />
      </div>
    </div>
  </body>
</html>
Exemple #3
0
/** Universal main controller action */
function main__HANDLER()
{
    gallery_list();
    //m()->view('gallery/index')->title('Main page');
}