예제 #1
0
function shutdown($smarty, $module_name, $local_templates_dir, $arrPermission, $arrCredentiasls)
{
    $smarty->assign("SHUTDOWN_PROGRESS", _tr("Shutdown in progress"));
    $smarty->assign("MSG_LINK", _tr("Continue"));
    if ($_POST['shutdown_mode'] == '1') {
        $smarty->assign("SHUTDOWN_MSG", _tr("Your system in shutting down now. Please, try again later."));
        exec("sudo -u root /sbin/shutdown -h now", $salida, $retorno);
        $salida = $smarty->fetch("file:{$local_templates_dir}/shutdown_in_progress.tpl");
    } else {
        if ($_POST['shutdown_mode'] == '2') {
            $smarty->assign("SHUTDOWN_MSG", _tr("The reboot signal has been sent correctly."));
            exec("sudo -u root /sbin/shutdown -r now", $salida, $retorno);
            $salida = $smarty->fetch("file:{$local_templates_dir}/shutdown_in_progress.tpl");
        } else {
            $smarty->assign("mb_title", _tr("Error"));
            $smarty->assign("mb_message", _tr("Invalid Mode"));
            return showModule($smarty, $module_name, $local_templates_dir, $arrPermission, $arrCredentiasls);
        }
    }
}
예제 #2
0
<?php

// @package    Ababool 1.0.0
// @copyright  Copyright (C) 2014 Ciro Artigot (@ciroartigot). All rights reserved.
// @license    GNU General Public License version 3 or later (GPLv3); see http://www.gnu.org/copyleft/gpl.html
defined('Ababool') or http_response_code(404);
echo showModule('breadcrumbs', $app, 'youtube');
?>
    
<div class="col-xs-10 col-sm-8 col-md-6 col-lg-6">
<h1>Youtube	</h1><br /> 


<iframe width="420" height="315" src="https://www.youtube.com/embed/0RuAlyNclck" frameborder="0" allowfullscreen></iframe>

</div>
예제 #3
0
<?php

// @package    Ababool 1.0.0
// @copyright  Copyright (C) 2014 Ciro Artigot (@ciroartigot). All rights reserved.
// @license    GNU General Public License version 3 or later (GPLv3); see http://www.gnu.org/copyleft/gpl.html
defined('Ababool') or http_response_code(404);
echo showModule('breadcrumbs', $app, 'ajax');
?>
    
<div class="col-xs-10 col-sm-8 col-md-6 col-lg-6">
<h1>Ababool Page AJAX loaded</h1><br /> 
This page is called and loaded by AJAX .
</div>
예제 #4
0
<?php

// @package    Ababool 1.0.0
// @copyright  Copyright (C) 2014 Ciro Artigot (@ciroartigot). All rights reserved.
// @license    GNU General Public License version 3 or later (GPLv3); see http://www.gnu.org/copyleft/gpl.html
defined('Ababool') or http_response_code(404);
echo showModule('breadcrumbs', $app, 'what-is-ababool');
?>
    
<div class="col-xs-10 col-sm-8 col-md-6 col-lg-6">
<h1>With you</h1><br />
<p><strong>Ababool</strong> project is an open source and free software, which will be published on <strong>GitHub</strong> and <strong>GPL licensed</strong>.</p>
<p>From <strong>Ababool </strong>we seek your cooperation, to help to extend the <strong>Ababool </strong>functionality.</p>
<p>We will open a blog, a discussion forum and a directory of extensions to publish plugins, theme and modules.</p>
<p><strong>Stay tuned!</strong></p>
<br /><br />

</div>
예제 #5
0
<?php

echo showModule('breadcrumbs', $app, 'transitions');
?>

<h1>Page Transitions</h1>

<h2>Here you can test all the Ababool page transsitions</h2><br /><br />

		
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-success aixgoto " rel="transitions2" data-animation="1">Show me data animation 1</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-info aixgoto " rel="transitions2" data-animation="2">Show me data animation 2</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-primary aixgoto " rel="transitions2" data-animation="3">Show me data animation 3</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-info aixgoto " rel="transitions2" data-animation="4">Show me data animation 4</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-success aixgoto " rel="transitions2" data-animation="5">Show me data animation 5</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-warning aixgoto " rel="transitions2" data-animation="6">Show me data animation 6</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-danger aixgoto " rel="transitions2" data-animation="7">Show me data animation 7</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-danger aixgoto " rel="transitions2" data-animation="8">Show me data animation 8</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-info aixgoto " rel="transitions2" data-animation="9">Show me data animation 9</button>
              
                        <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn  btn-primary aixgoto " rel="transitions2" data-animation="10">Show me data animation 10</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-primary aixgoto " rel="transitions2" data-animation="11">Show me data animation 11</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-info aixgoto " rel="transitions2" data-animation="12">Show me data animation 12</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-success aixgoto " rel="transitions2" data-animation="13">Show me data animation 13</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-warning aixgoto " rel="transitions2" data-animation="14">Show me data animation 14</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-danger aixgoto " rel="transitions2" data-animation="15">Show me data animation 15</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-danger aixgoto " rel="transitions2" data-animation="16">Show me data animation 16</button>
              <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn btn-info aixgoto " rel="transitions2" data-animation="17">Show me data animation 17</button>
              
              
                        <button type="button" style="width: 220px; margin-bottom:7px; margin-right: 7px;"  class="btn  btn-primary aixgoto " rel="transitions2" data-animation="18">Show me data animation 18</button>
예제 #6
0
<?php

// @package    Ababool 1.0.0
// @copyright  Copyright (C) 2014 Ciro Artigot (@ciroartigot). All rights reserved.
// @license    GNU General Public License version 3 or later (GPLv3); see http://www.gnu.org/copyleft/gpl.html
defined('Ababool') or http_response_code(404);
echo showModule('breadcrumbs', $app, 'gallery');
?>
    
<div class="">
<h1>Gallery demo</h1><br /> 


 <?php 
echo showModule('gallery', $app, 'gallery1');
?>

</div>
예제 #7
0
<?php

// @package    Ababool 1.0.0
// @copyright  Copyright (C) 2014 Ciro Artigot (@ciroartigot). All rights reserved.
// @license    GNU General Public License version 3 or later (GPLv3); see http://www.gnu.org/copyleft/gpl.html
defined('Ababool') or http_response_code(404);
echo showModule('breadcrumbs', $app);
?>
<h1>GNU General Public License</h1><br /> 

<div class="col-xs-10 col-sm-8 col-md-6 col-lg-6">

<ul class="list-group list-group-black">
<li class="list-group-item">
    <h4>GNU General Public License</h4>
      <p><strong>GNU GENERAL PUBLIC LICENSE</strong><br />
      <em>Version 2, June 1991</em></p>
      <p> Copyright (C) 1989, 1991 Free Software Foundation, Inc.<br />
        59 Temple Place, Suite 330, Boston, MA  02111-1307  USA<br />
        Everyone is permitted to copy and distribute verbatim copies<br />
        of this license document, but changing it is not allowed.</p>
      <p> <strong>Preamble</strong></p>
      <p> The licenses for most software are designed to take away your<br />
        freedom to share and change it.  By contrast, the GNU General Public<br />
        License is intended to guarantee your freedom to share and change free<br />
        software--to make sure the software is free for all its users.  This<br />
        General Public License applies to most of the Free Software<br />
        Foundation's software and to any other program whose authors commit to<br />
        using it.  (Some other Free Software Foundation software is covered by<br />
        the GNU Library General Public License instead.)  You can apply it to<br />
        your programs, too.</p>