예제 #1
0
<?php

/*
Copyright (C) 2015  Lenilson Jr.

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/>.
*/
require_once 'core/core.php';
$microbordo = new MicroBordo();
$microbordo->getHeader();
$microbordo->getContent();
$microbordo->getFooter();
예제 #2
0
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/>.
*/
require_once $_SERVER["DOCUMENT_ROOT"] . '/core/core.php';
?>
<div class="container-fluid">
    <div class="row">

        <div class="col-md-4" style="padding-left:65px; padding-right: 65px; background-color: #f5f5f5;">

            <div class="row">

                <h1 class="text-center text-primary logo"><?php 
echo MicroBordo::getBusinessName();
?>
</h1>

                <hr>

                <div class="row">

                    <form id="newPost">
                        <div class="form-group">
                            <textarea name="post" class="form-control" placeholder="O que passa pela sua cabeça agora?" rows="8" cols="40"></textarea>
                        </div>
                        <div class="form-group">
                            <div id="tags"></div>
                        </div>
                        <div class="form-group">
예제 #3
0
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/>.
*/
require_once $_SERVER["DOCUMENT_ROOT"] . '/core/core.php';
$microbordo = new MicroBordo();
$frontend = new FrontEnd();
?>
<!DOCTYPE html>
<html>
    <head>
        <title><?php 
$microbordo->pageTitle();
?>
</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="icon" type="image/x-icon" href="<?php 
echo MicroBordo::BASE_URL . MicroBordo::IMG_DIR;
?>
favicon.ico" />
<form id="NewCategory">

    <div class="row">
        <h2 class="page-header text-center">
            Cadastrar nova categoria
        </h2>
    </div>

    <div class="row">

        <div class="row">
            <button type="submit" class="btn btn-lg btn-success pull-right btn-cad">Cadastrar</button>
        </div>
        <div class="row">
            <?php 
echo MicroBordo::getContent('form-category');
?>
        </div>
        <div class="row">
            <button type="submit" class="btn btn-lg btn-success pull-right btn-cad">Cadastrar</button>
        </div>

    </div>
</form>
<script type="text/javascript">

$("#NewCategory").submit(function(){

    $.ajax({
        url: 'core/ajax.php?action=newProductCategory',
        data: $("#NewCategory").serialize(),
예제 #5
0
<?php

/*
Copyright (C) 2015  Lenilson Jr.

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/>.
*/
require_once $_SERVER["DOCUMENT_ROOT"] . '/core/core.php';
?>
<div class="modalLoad"></div>
<div id="modalAlertDiv">
    <?php 
MicroBordo::getContent('modal-messages');
?>
</div>

</body>
</html>
예제 #6
0
 switch ($_GET['action']) {
     case 'nav':
         $p = empty($_POST['p']) ? '' : $_POST['p'];
         $microbordo = new MicroBordo();
         $return = $microbordo->navPage($_POST['page'], $p);
         break;
     case 'pag':
         $microbordo = new MicroBordo();
         $return = $microbordo->navPage($_POST['page'], $_POST['p']);
         break;
     case 'search':
         $search = new Search();
         $return = $search->searchPage($_POST['s']);
         break;
     case 'updateOptions':
         $gf = new MicroBordo();
         $return = $gf->updateOptions($_POST);
         break;
         /*
             Actions designed to posts
         */
     /*
         Actions designed to posts
     */
     case 'viewPost':
         $p = new Posts();
         $return = $p->_view($_POST['id']);
         break;
     case 'newPost':
         $p = new Posts();
         $return = $p->_add($_POST);
예제 #7
0
*/
//This file cannot be directly accessed
if (array_search(__FILE__, get_included_files()) === 0) {
    die;
}
/*
This file is the main system file. Here we'll call the classes, set default settings and more.
*/
//Let's set the time zone and the default charset
header('Content-type: text/html; charset=utf-8');
date_default_timezone_set("Brazil/East");
//Open session
session_start();
/*
Here we'll call the system classes
*/
//Configuration class
require_once 'config.php';
//Data-base Class
require_once 'classes/database.class.php';
//Main Class
require_once 'classes/microbordo.class.php';
//Front-end Class
require_once 'classes/frontend.class.php';
//Pagination Class
require_once 'classes/pagination.class.php';
//Search Class
require_once 'classes/search.class.php';
//Load all modules
MicroBordo::loadModules();