Beispiel #1
0
<?php

$data = array();
$data['title'] = "Video";
$data['template'] = "main_home/video_view";
loadview("layout", $data);
Beispiel #2
0
    // send the output buffer
    @ob_end_flush();
} else {
    $admin_template = $template = array();
    $admin_template['content'] = ob_get_contents();
    @ob_end_clean();
    // build the admin interface (with menu)
    $admin_template['fpbx_types'] = $types;
    $admin_template['fpbx_type_names'] = $type_names;
    $admin_template['fpbx_menu'] = $fpbx_menu;
    $admin_template['fpbx_usecategories'] = $amp_conf['USECATEGORIES'];
    $admin_template['fpbx_type'] = $type;
    $admin_template['display'] = $display;
    // set the language so local module languages take
    set_language();
    // then load it and put it into the main freepbx interface
    $template['content'] = loadview('freepbx_admin', $admin_template);
    $template['use_nav_background'] = true;
    // setup main template
    $template['module_name'] = $module_name;
    $template['module_page'] = $module_page;
    if ($amp_conf['SERVERINTITLE']) {
        $template['title'] = $_SERVER['SERVER_NAME'] . " FreePBX administration";
    } else {
        $template['title'] = "FreePBX administration";
    }
    $template['amp_conf'] =& $amp_conf;
    $template['reload_needed'] = check_reload_needed();
    $template['benchmark_starttime'] = $benchmark_starttime;
    showview('freepbx', $template);
}
Beispiel #3
0
<link href="<?php 
echo base_url;
?>
public/admin/styles/admin-white.css" rel="stylesheet" type="text/css" />
<link href="<?php 
echo base_url;
?>
public/admin/styles/styles.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="<?php 
echo base_url . "public/images/favicon.ico";
?>
" />
<?php 
loadview("scripts");
?>
</head>

<body>
	<div id="wrapper">
		<?php 
loadview("header", $data);
?>
        <?php 
loadview("content", $data);
?>
    </div>
    	<?php 
loadview("bottom", $data);
?>
</body>
</html>
Beispiel #4
0
<?php

session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php 
echo $data['title'];
?>
</title>
<meta name="keywords" content="WEBSITE ĐIỆN TOÁN ĐÁM MÂY" />
<meta name="description" content="WEBSITE ĐIỆN TOÁN ĐÁM MÂY" />
<base href="<?php 
echo base_url;
?>
" />
<?php 
loadview("scripts");
?>

</head>
<body>
	<?php 
loadview("header", $data);
loadview("content", $data);
loadview("buttom", $data);
?>
</body>
</html>
Beispiel #5
0
/* </functions> */
$action = Functions::get('action');
Functions::checkRights(__FILE__, $action, Functions::get('token'));
switch ($action) {
    case 'fields_info':
        $data = infoFields();
        break;
    case 'new':
        $data = addDrink();
        break;
    case 'update':
        $data = updateDrink(Functions::get('id'));
        break;
    case 'info':
        $data = infoDrink(Functions::get('id'));
        break;
    case 'delete':
        $data = deleteDrink(Functions::get('id'));
        break;
    case 'customer_history':
        $data = getCustomerHistory(Functions::get('id'));
        break;
    case 'list':
        $data = listDrinks();
        break;
    default:
        Functions::setResponse(400);
}
/* </controller> */
loadview('json', $data);
Beispiel #6
0
<?php

$data['error'] = "";
if (isset($_POST['ok'])) {
    $u = $p = "";
    $help = new Helper_Validate();
    $help->check_empty($_POST['txtuser'], $lang['err_empty_user']);
    $help->check_empty($_POST['txtpass'], $lang['err_empty_pass']);
    $help->notmatches($_POST['txtpass'], $_POST['txtpass2'], $lang['err_notmatches']);
    $help->user_registered($_POST['txtuser'], $lang['err_user_registered']);
    if ($help->valid() == FALSE) {
        $data['error'] = $help->getmess();
    } else {
        $u = $_POST['txtuser'];
        $p = $_POST['txtpass'];
        $l = $_POST['level'];
        $muser = new Model_User();
        $data_insert = array("username" => $u, "password" => $p, "level" => $l);
        $muser->insert_user($data_insert);
        redirect("index.php?module=user&act=list");
    }
}
loadview("user/add_view", $data);
Beispiel #7
0
<script type="text/javascript" src="<?php 
echo base_url . "public/js/wowslider.js";
?>
"></script>
<script type="text/javascript" src="<?php 
echo base_url . "public/js/script_wow.js";
?>
"></script>

	<?php 
loadview($data['template'], $data);
?>
     <div id="content_slide_bottom">
      	<img src="<?php 
echo base_url . "public/images/";
?>
banner_bottom.png" alt="" />
      </div>
    </div>
  </div>
</div>
Beispiel #8
0
    if ($_POST['txtuser'] == NULL) {
        $data['error'][] = "Please enter your username";
    } else {
        $u = $_POST['txtuser'];
    }
    if ($_POST['txtpass'] != $_POST['txtpass2']) {
        $data['error'][] = "Your password and repassword are not matches";
    } else {
        if ($_POST['txtpass'] != "") {
            $p = $_POST['txtpass'];
        } else {
            $p = "none";
        }
    }
    $l = $_POST['level'];
    if ($u && $p && $l) {
        if ($muser->check_username($u, $id) == FALSE) {
            $data['error'][] = "Your username has been registered, please try again";
        } else {
            $data_update = array("username" => $u, "level" => $l);
            if ($p != "none") {
                $data_update['password'] = $p;
            }
            $muser->update_user($data_update, $id);
            redirect("index.php?module=user&act=list");
        }
    }
}
$data['info'] = $muser->getuser($id);
loadview("user/edit_view", $data);
Beispiel #9
0
<?php

$muser = new Model_User();
$helper = new Helper_Paging($config, $muser);
$data["users"] = $muser->listuser();
$data['pages'] = $helper->getPageLinks('index.php?module=user&act=list');
loadview("user/list_view", $data);
Beispiel #10
0
<?php

/**
 * Created by PhpStorm.
 * User: MSI
 * Date: 12-May-16
 * Time: 2:36 PM
 */
$mUser = new Model_User();
$listUser = $mUser->listAll();
loadview("user/list", $listUser);