Exemple #1
0
<?php

include_once 'header.php';
$footerData = new FooterData();
$data = $footerData->getData();
?>
<div class="container">
    <div class="row">
        <div class="col-lg-12">
            <h2 class="page-header">Content editing for common footer</h2>
        </div>
        <!-- /.col-lg-12 -->
    </div>

    <div class="row">
        <div class="col-lg-12">
            <form action="/admin/footer/update/" method="post" class="form-horizontal">
                <?php 
foreach ($data as $key => $datum) {
    ?>
                    <div class="form-group">
                        <?php 
    $desc = $datum['description'];
    ?>
                        <label for="<?php 
    echo $key;
    ?>
" class="col-lg-2 col-sm-2 control-label"><a id="desc-<?php 
    echo $key;
    ?>
" class="desc-edit" data-type="text" data-pk="<?php 
Exemple #2
0
 function post($action = null)
 {
     $users = new UsersData();
     if ($action == 'process' && $users->checkPass() && !$users->authNeeded()) {
         DashboardUtils::backupFiles($_POST['files']);
         MinimizeTools::minimizeHTMLFiles($_POST['files']);
         new AnalyticsData();
         new MediaData();
         new SettingsData();
         $rss = new RSSData();
         $rss->buildDataFile($_POST['files']);
         $nav = new NavigationData();
         $nav->buildDataFile($_POST['files']);
         $blog = new BlogData();
         $blog->buildDataFile($_POST['files']);
         $footer = new FooterData();
         $footer->buildDataFile($_POST['files']);
         $pages = new PagesData();
         $pages->buildDataFile($_POST['files']);
         DashboardUtils::renameFiles($_POST['files']);
         DashboardUtils::copyApacheConfig();
         DashboardUtils::createXMLSiteMap();
         $logsData = new LogsData();
         $logsData->addToLog('has initiated the CMS on the following files:', implode(" ", $_POST['files']));
         header('Location: /admin/');
     } else {
         include_once '401.html';
     }
 }
<?php

namespace CurrantPi;

/*
 * Footer area. Using a bunch of inline echos to find out
 * information about this system.
 */
include 'content/footer/FooterData.php';
$footer = new FooterData();
$footer_data = $footer->getData();
?>

<p><?php 
echo $footer_data->webserver;
?>
 - <?php 
echo $footer_data->php_version;
?>
</p>
<p><?php 
echo $footer_data->cpu;
?>
</p>

<p>
  <a href="https://github.com/ColinWaddell/CurrantPi"><i class="demo-icon icon-github"></i></a>
  <a href="https://github.com/ColinWaddell/CurrantPi">Source</a>
</p>
<hr />
<p>
Exemple #4
0
 function post()
 {
     $users = new UsersData();
     if ($users->checkPass() && !$users->authNeeded()) {
         $footer = new FooterData();
         $footer->updateData($_POST);
         header('Location: /admin/footer/?updated=true');
     } else {
         include_once '401.html';
     }
 }