rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit c143aa564405cc99ce823464ab7865479f1b16c0
parent 9daf90c206fd9be092e3391435be0f472e8a66a5
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 19 Apr 2015 14:07:56 +0200

some design things

Diffstat:
Minstall/index.php | 135+++++++++++++++++++++++++++++++++++++++++++++----------------------------------
1 file changed, 77 insertions(+), 58 deletions(-)

diff --git a/install/index.php b/install/index.php @@ -17,66 +17,85 @@ <link rel="stylesheet" href="../core/libs/theme_engine/bootstrap-social/bootstrap-social.min.css"> </head> <body> -<div class="jumbotron"> -<div class="container"> -<h1>Check for requirements</h1> -<?php -############################### -# include files from root dir # -############################### -$root_1 = realpath($_SERVER["DOCUMENT_ROOT"]); -$currentdir = getcwd(); -$root_2 = str_replace($root_1, '', $currentdir); -$root_3 = explode("/", $root_2); -if ($root_3[1] == 'core') { - echo $root_3[1]; - $root = realpath($_SERVER["DOCUMENT_ROOT"]); -}else{ - $root = $root_1 . '/' . $root_3[1]; -} + <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <?php + echo '<a class="navbar-brand" href="index.php">'.$blog_name.'</a>'; + ?> + </div> + <div id="navbar" class="navbar-collapse collapse navbar-right"> + <div class="navbar-form navbar-right"><?php include($root . '/core/backend/admin/modules/navigation.php'); ?></div> + </div><!--/.navbar-collapse --> + </div> + </nav> -################################ -# Check if mysqli is installed # -################################ -if (!extension_loaded('mysqli')) { - if (!dl('mysqli.so')) { - echo "<p><span class=\"text-danger\">MySQLi</span> is not installed! Please install this module!</p></br>"; - $mysql = 0; - }else{ - echo "<p><span class=\"text-success\">MySQLi</span> has been successfully loaded</p></br>"; - $mysql = 1; - } -}else{ - echo "<p><span class=\"text-success\">MySQLi</span> has been successfully loaded</p></br>"; - $mysql = 1; -} + <div class="jumbotron"> + <div class="container"> + <h1>Check for requirements</h1> + <?php + ############################### + # include files from root dir # + ############################### + $root_1 = realpath($_SERVER["DOCUMENT_ROOT"]); + $currentdir = getcwd(); + $root_2 = str_replace($root_1, '', $currentdir); + $root_3 = explode("/", $root_2); + if ($root_3[1] == 'core') { + echo $root_3[1]; + $root = realpath($_SERVER["DOCUMENT_ROOT"]); + }else{ + $root = $root_1 . '/' . $root_3[1]; + } -################################### -# Check if Directory is writeable # -################################### -if ( ! is_writable($root)) { - echo "<p><span class=\"text-danger\">" . $root . '</span> must writable!!!</p></br>'; - $dir = 1; -} else { - echo "<p><span class=\"text-success\">" . $root . "</span> is writeable!</p></br>"; - $dir = 1; -} + ################################ + # Check if mysqli is installed # + ################################ + if (!extension_loaded('mysqli')) { + if (!dl('mysqli.so')) { + echo "<p><span class=\"text-danger\">MySQLi</span> is not installed! Please install this module!</p></br>"; + $mysql = 0; + }else{ + echo "<p><span class=\"text-success\">MySQLi</span> has been successfully loaded</p></br>"; + $mysql = 1; + } + }else{ + echo "<p><span class=\"text-success\">MySQLi</span> has been successfully loaded</p></br>"; + $mysql = 1; + } -if ($mysql == 1 && $dir == 1){ - echo " - <form action=\"set_variables.php\" method=\"post\"> - <input type=\"submit\" name=\"send\" value=\"Go on!\" /> - </form>"; -}else{ - echo "Can't proceed!</br>"; -} -?> -</div> -</div> -<!-- Bootstrap core JavaScript -================================================== --> -<!-- Placed at the end of the document so the pages load faster --> -<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> -<script src="../core/libs/theme_engine/BootStrap/js/bootstrap.min.js"></script> + ################################### + # Check if Directory is writeable # + ################################### + if ( ! is_writable($root)) { + echo "<p><span class=\"text-danger\">" . $root . '</span> must writable!!!</p></br>'; + $dir = 1; + } else { + echo "<p><span class=\"text-success\">" . $root . "</span> is writeable!</p></br>"; + $dir = 1; + } + + if ($mysql == 1 && $dir == 1){ + echo " + <form action=\"set_variables.php\" method=\"post\"> + <input type=\"submit\" name=\"send\" value=\"Go on!\" /> + </form>"; + }else{ + echo "Can't proceed!</br>"; + } + ?> + </div> + </div> + <!-- Bootstrap core JavaScript + ================================================== --> + <!-- Placed at the end of the document so the pages load faster --> + <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> + <script src="../core/libs/theme_engine/BootStrap/js/bootstrap.min.js"></script> </body> </html>