Page MenuHomeGitPull.it

index.php
No OneTemporary

Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None

index.php

<?php
# WikiCAPTCHA Control Room
# Copyright (C) 2019 Valerio Bozzolan and contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
// load everything
require '../load.php';
// this is the homepage (the business logic of this page it's in this class)
$page = new PageHome();
// I want this stylesheet
enqueue_css( 'my-style' );
// print site header
$page->printHeader();
?>
<h2><?= __( "Your Apps" ) ?></h2>
<?php if( $page->areThereMyApps() ): ?>
<ul>
<?php foreach( $page->getMyApps() as $app ): ?>
<li><?= HTML::a(
// href
http_build_get_query( 'app.php', [
'id ' => $app->getAppID(),
] ),
// link text
esc_html( $app->getAppName() )
) ?></li>
<?php endforeach ?>
</ul>
<?php else: ?>
<p><em><?= __( "None yet." ) ?></em></p>
<?php endif ?>
<h2><?= __( "Create App" ) ?></h2>
<?php template( 'form-app', [
'app' => null,
] ) ?>
<?php
$page->printFooter();

File Metadata

Mime Type
text/x-php
Expires
Thu, Nov 19, 04:12 (5 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264707
Default Alt Text
index.php (1 KB)

Event Timeline