function getJs($myjs, $autoEcho = true, $noCache = false)
{
    if (!$myjs) {
        return '';
    }
    $str = '';
    if (!is_array($myjs) && strExists($myjs, ',')) {
        $myjs = explode(',', $myjs);
    }
    if (is_array($myjs)) {
        foreach ($myjs as $value) {
            $str .= getJs($value, $autoEcho, $noCache);
        }
    } else {
        if (strExists($myjs, '|')) {
            $ar = explode('|', $myjs);
            $myjs = $ar[0];
            $time = isset($ar[1]) ? '?v=' . $ar[1] : '';
        } else {
            $time = $noCache ? '?v=' . date('Ymd', TIME) : '';
        }
        $str = '<script src="' . (strpos($myjs, './') === 0 ? LOCAL_PUBLIC_PATH . 'js/' : JS_PATH) . $myjs . '.js' . $time . '"></script>' . "\n";
    }
    if ($autoEcho) {
        echo $str;
    } else {
        return $str;
    }
}
Example #2
0
function AdkAdmin()
{
    global $txt, $context, $settings, $adkportal, $boardurl, $adkFolder;
    //Is allowed to manage adkportal
    isAllowedTo('adk_portal');
    //Load my template
    adktemplate('Adk-Admin');
    //Load Adk Language
    adkLanguage('Adk-Admin');
    $subActions = array('view' => 'view', 'adksettings' => 'adksettings', 'adksavesettings' => 'adksavesettings', 'manageicons' => 'manageicons');
    //Set subactions for standalone mode
    if ($adkportal['adk_enable'] == 2) {
        $subActions += array('standalone' => 'SettingsStandAlone', 'save_stand' => 'SaveSettingsStandAlone');
    }
    $context['html_headers'] .= getCss('admin_adkportal');
    $context['html_headers'] .= getJs('admin');
    $context[$context['admin_menu_name']]['tab_data'] = array('title' => $txt['adkadmin_settings'], 'description' => $txt['adkadmin_news_desc'], 'tabs' => array('view' => array('description' => $txt['adkadmin_news_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/news.png" />&nbsp;' . $txt['adkadmin_news']), 'adksettings' => array('description' => $txt['adkadmin_setting_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/settings.png" />&nbsp;' . $txt['adkadmin_setting']), 'manageicons' => array('description' => $txt['adkadmin_icons_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/icons.png" />&nbsp;' . $txt['adkadmin_icons'])));
    //The last thing... print the stand alone menu
    if ($adkportal['adk_enable'] == 2) {
        $context[$context['admin_menu_name']]['tab_data']['tabs']['standalone'] = array('description' => $txt['adkadmin_stand_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/php.png" />&nbsp;' . $txt['adkadmin_stand']);
    }
    // Follow the sa or just go to View function
    if (!empty($_GET['sa']) && !empty($subActions[$_GET['sa']])) {
        $subActions[@$_GET['sa']]();
    } else {
        $subActions['view']();
    }
}
function AdkBlocksGeneral()
{
    global $txt, $context, $sourcedir, $boardurl, $settings, $adkFolder;
    //Permisos
    isAllowedTo('adk_portal');
    //Load my template
    adktemplate('Adk-AdminBlocks');
    //Load my language
    adkLanguage('Adk-AdminBlocks');
    $subActions = array('checktemplates' => 'LoadBlocksTemplates', 'newtemplate' => 'createNewTemplate', 'save_template' => 'saveNewTemplate', 'edittemplate' => 'editTemplate', 'save_edit_template' => 'saveEditTemplate', 'deletetemplate' => 'deleteTemplate', 'approve_template' => 'approveTemplate', 'viewblocks' => 'viewblocks', 'settingsblocks' => 'SettingsBlocks', 'savesettingsblocks2' => 'SaveSettingsBlocks2', 'deleteblocks' => 'deleteblocks', 'editblocks' => 'editblocks', 'saveeditblocks' => 'saveeditblocks', 'newblocks' => 'LoadTheNewBlocksToCreate', 'savenewblocks' => 'savenewblocks', 'showeditnews' => 'showeditnews', 'showdeletenews' => 'showdeletenews', 'showsaveeditnews' => 'showsaveeditnews', 'createnews' => 'createnews', 'savecreatenews' => 'savecreatenews', 'uploadblock' => 'uploadblock', 'saveuploadblock' => 'saveuploadblock', 'previewblock' => 'PreviewBlockAdKPortal', 'permissions' => 'PermissionBlock', 'savepermissions' => 'SavePermissionBlock', 'download' => 'DownloadNewBlock', 'add_smf_block' => 'AddSMFPersonalBlock', 'shoutboxdeleteall' => 'DeleteShoutboxMessages');
    //Load CSS
    $context['html_headers'] .= getCss('admin_adkportal');
    $context['html_headers'] .= javaScript_blocks();
    $context['html_headers'] .= getJs('admin');
    $context[$context['admin_menu_name']]['tab_data'] = array('title' => $txt['adkmod_block_manage'], 'description' => $txt['adkblock_first_descrip'], 'tabs' => array('checktemplates' => array('description' => $txt['adkblock_templates_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/wrench_orange.png" />&nbsp;' . $txt['adkblock_templates']), 'viewblocks' => array('description' => '', 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/blocks.png" />&nbsp;' . $txt['adkmod_block_title']), 'settingsblocks' => array('description' => $txt['adkblock_settings_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/admin.png" />&nbsp;' . $txt['adkmod_block_settings']), 'newblocks' => array('description' => $txt['adkblock_newblocks_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/createblock.png" />&nbsp;' . $txt['adkmod_block_add']), 'createnews' => array('description' => $txt['adkblock_news_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/createnews.png" />&nbsp;' . $txt['adkmod_block_add_news']), 'download' => array('description' => $txt['adkblock_download_personal_desc'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/drive_add.png" />&nbsp;' . $txt['adkmod_block_download'])));
    // Follow the sa or just go to View function
    if (!empty($_GET['sa']) && !empty($subActions[$_GET['sa']])) {
        $subActions[@$_GET['sa']]();
    } else {
        $subActions['checktemplates']();
    }
}
function AdkModules()
{
    global $context, $txt, $settings, $boardurl, $adkFolder;
    isAllowedTo('adk_portal');
    adktemplate('Adk-AdminModules');
    adkLanguage('Adk-AdminModules');
    $subActions = array('intro' => 'introAdk', 'viewadminpages' => 'viewadminpages', 'createpages' => 'createpages', 'savecreatedpages' => 'savecreatedpages', 'editpages' => 'editpages', 'saveeditpages' => 'saveeditpages', 'deletepages' => 'deletepages', 'uploadanyimage' => 'UploadNewImage', 'saveuploadimg' => 'SaveUploadNewImage', 'manageimagesadk' => 'ManageImagesAdk', 'deleteimagesadk' => 'DeleteImagesAdk', 'contact' => 'ContactAdmin', 'save_contact' => 'SaveContactAdmin', 'enable_page_menu' => 'EnablePageMenu', 'enable_comments' => 'EnableComments', 'enable_notifications' => 'EnableNotifications');
    $context[$context['admin_menu_name']]['tab_data'] = array('title' => $txt['adkmodules_modules_settings'], 'description' => $txt['adkmodules_first_modules'], 'tabs' => array('intro' => array('description' => $txt['adkmodules_first_modules'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/intro.png" /> ' . $txt['adkmod_modules_intro']), 'viewadminpages' => array('description' => $txt['adkmodules_second_modules'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/pages.png" /> ' . $txt['adkmod_modules_pages']), 'contact' => array('description' => $txt['adkmodules_desc_contacto'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $adkFolder['images'] . '/newmsg.png" /> ' . $txt['adkmod_modules_contacto']), 'uploadanyimage' => array('description' => $txt['adkmodules_tirth_modules'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/imagesadvanced.png" /> ' . $txt['adkmod_modules_images']), 'manageimagesadk' => array('description' => $txt['adkmodules_fourth_modules'], 'label' => '<img style="vertical-align: middle;" alt="" src="' . $settings['default_theme_url'] . '/images/admin/images.png" /> ' . $txt['adkmod_modules_manage_images'])));
    // Hooks menu integrations
    call_integration_hook('integrate_modules_menu', array(&$context[$context['admin_menu_name']]['tab_data']));
    // Hooks sa integration
    call_integration_hook('modules_subactions', array(&$subActions));
    //Hooks pre includes
    adkportal_include_hooks('integrate_pre_include_modules');
    $context['html_headers'] .= getCss('admin_adkportal');
    $context['html_headers'] .= getJs('admin');
    // Follow the sa or just go to View function
    if (!empty($_GET['sa']) && !empty($subActions[$_GET['sa']])) {
        $subActions[@$_GET['sa']]();
    } else {
        $subActions['intro']();
    }
}
         }
     }
 } else {
     unset($products);
 }
 // rebuild products
 if (isset($newProducts)) {
     $products = $newProducts;
     // product selected, so check if it exist
     if (isset($detail) && !is_numeric($detail)) {
         $detailParts = explode('-', $detail);
         $detailId = count($detailParts);
         // transoform the product names to url
         $detailUrl = transformProductNameToUrl($products, $detailParts[$detailId - 1]);
         if ($detailUrl['exists']) {
             $scripts = getJs($allScripts, ['search' => 1, 'imageSwitch' => 1, 'maps' => 1, 'productMap' => 1], true);
             require_once APP_PATH . 'model/getAllProperties.php';
             require_once APP_PATH . 'model/getSimilarProducts.php';
             require_once APP_PATH . 'model/checkIfMailExists.php';
             require_once APP_PATH . 'model/subscribe.php';
             require_once APP_PATH . 'model/sendSuccessMail.php';
             if (isset($_POST['email'], $_POST['zip'], $_POST['register-newsletter'])) {
                 if (!empty($_POST['email']) && !empty($_POST['zip'])) {
                     // trim the mail
                     $mail = trim($_POST['email']);
                     // trim the zip
                     $zip = trim($_POST['zip']);
                     // proof if email already registered
                     $proofedMail = checkIfMailExists($mail, $db);
                     if ($proofedMail == true) {
                         $msg = subscribe($mail, $zip, $db);
Example #6
0
     require_once APP_PATH . 'model/updateTextStatus.php';
     require_once APP_PATH . 'model/getSentenceInAllLanguages.php';
     // models aufrufen
     $scripts = getJs($allScripts, ["attributes" => 1], true);
     // controller einbinden
     require_once APP_PATH . 'control/attributesController.php';
     // view zusammenbauen
     require_once APP_PATH . 'view/template/header.php';
     require_once APP_PATH . 'view/site/attributes.php';
     require_once APP_PATH . 'view/template/footer.php';
     break;
 case 'connection':
     // models laden
     require_once APP_PATH . 'model/getAllSentencesToCheck.php';
     // models aufrufen
     $scripts = getJs($allScripts, ["connection" => 1], true);
     // controller einbinden
     require_once APP_PATH . 'control/connectionController.php';
     // view zusammenbauen
     require_once APP_PATH . 'view/template/header.php';
     require_once APP_PATH . 'view/site/connection.php';
     require_once APP_PATH . 'view/template/footer.php';
     break;
 case 'profile':
     // models laden
     require_once APP_PATH . 'model/getUserData.php';
     require_once APP_PATH . 'model/getAllLanguages.php';
     require_once APP_PATH . 'model/updateUserData.php';
     require_once APP_PATH . 'model/updateMail.php';
     // controller einbinden
     require_once APP_PATH . 'control/profileController.php';
<head>
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="format-detection" content="telephone=no"/>
<meta charset="utf-8">
<title><?php 
echo $Document['pagename'];
?>
</title>
<?php 
if ($Document['mycss']) {
    getCss($Document['mycss'], true);
}
if ($Document['myjs']) {
    getJs($Document['myjs'], true);
}
?>
<script>
var MAIN_PATH='<?php 
echo WEB_URL;
?>
';
var PUBLIC_URL='<?php 
echo PUBLIC_PATH;
?>
';
</script>
</head>
<body>
<!-- header -->
Example #8
0
<?php

$this->load->view('common/header');
echo '<div style="display:none;"><pre>';
//print_r($events);
print_r($eventInv);
echo '</pre></div>';
?>
<script language="JavaScript" src="<?php 
echo getJs("FusionCharts.js");
?>
"></script>

	<div id="content_body">
		<div class="cblock_top">
			<div style="padding-top:10px;">
			 <div class="fleft"> <a href="<?php 
echo my_site_url();
?>
admin/exportCd"  class="btn" >Demo CD Export</a></div>
			   <div class="fleft">
				<a id="account_pay_link" href="javascript:void(0)"  class="btn" >Account Payable Export</a>
			         
			   </div>
			 <div class="fleft">
				<a id="account_reciv_link" href="javascript:void(0)"  class="btn" >Accounts Receivable Export</a>
				
			 </div>
			</div>
			<div class="clear"></div>
			<div  id="account_payble" style="display: none; margin-top: 10px;">
Example #9
0
    if (strlen($sql) > 0) {
        $sql = "AND (" . substr($sql, 0, -3) . ")";
    }
    $query = $db->query("SELECT DISTINCT cms_group_includes.md5, cms_group_includes.link FROM cms_group_includes, cms_domains_ids WHERE cms_group_includes.type='css' AND cms_domains_ids.domainID='" . $globals->domainID . "' AND cms_group_includes.modulID=cms_domains_ids.elementID AND cms_domains_ids.type='mod' " . $sql . "");
    while ($result = $db->fetch($query)) {
        if (file_exists('..' . DS . 'modules' . DS . $globals->domainName . DS . $result['link'])) {
            $files[] = '//' . SITE_FOLDER . 'modules' . DS . $globals->domainName . DS . $result['link'];
        } else {
            error_log("File not found: //" . SITE_FOLDER . "modules" . DS . $globals->domainName . DS . $result['link'] . ' / min/groupsConfig.php (90)');
        }
    }
    //modules
    $sql = "";
    foreach ($modules as $module) {
        $sql .= "includes.modulID='" . $module . "' OR ";
    }
    if (strlen($sql) > 0) {
        $sql = "AND (" . substr($sql, 0, -3) . ")";
    }
    $query = $db->query("SELECT includes.link FROM includes, cms_domains_ids WHERE includes.type='css' AND cms_domains_ids.domainID='" . $globals->domainID . "' AND includes.modulID=cms_domains_ids.elementID AND cms_domains_ids.type='mod' " . $sql);
    while ($result = $db->fetch($query)) {
        if (file_exists('..' . DS . 'modules' . DS . $globals->domainName . DS . $result['link'])) {
            $files[] = '//' . SITE_FOLDER . 'modules' . DS . $globals->domainName . DS . $result['link'];
        } else {
            error_log("File not found: //" . SITE_FOLDER . "modules" . DS . $globals->domainName . DS . $result['link'] . " / min/groupsConfig.php (78)");
        }
    }
    return $files;
}
return array('js' => getJs(), 'css' => getCss());
<title><?php 
    echo $Document['pagename'] . WEB_TITLE;
    ?>
</title> 
<!--[if lt IE 9]> <?php 
    echo getJs(array('content/ie/respond.min', 'content/ie/html5'));
    ?>
<![endif]-->
<?php 
    getCss(array('content/global', 'content/app.v2'));
    if ($Document['mycss']) {
        getCss($Document['mycss']);
    }
    getJs('content/app.v2');
    if ($Document['myjs']) {
        getJs($Document['myjs']);
    }
}
?>
<script>
var MAIN_PATH='<?php 
echo WEB_URL;
?>
';
var PUBLIC_URL='<?php 
echo PUBLIC_PATH;
?>
';
</script>
 </head>
 <body <?php 
Example #11
0
        // controller
        require_once APP_PATH . 'control/categoriesController.php';
        // Template
        $sitePath = '/view/site/dashboard/admin/categories.php';
        break;
    default:
        // DASHBOARD
        // load models
        require_once APP_PATH . 'model/getPackageOverviewData.php';
        require_once APP_PATH . 'model/organizePackageOverviewData.php';
        require_once APP_PATH . 'model/getNewsletterData.php';
        require_once APP_PATH . 'model/getUsersAmount.php';
        require_once APP_PATH . 'model/echoResult.php';
        require_once APP_PATH . 'model/getJs.php';
        // scripts
        $requiredScripts = ['chart' => 1, 'adminChart' => 1];
        // call models
        $scripts = getJs($allScripts, $requiredScripts, true);
        $packageOverviewData = getPackageOverviewData($db);
        $organizedPackageOverview = organizePackageOverviewData($packageOverviewData);
        $latestSubscribersAmount = echoResult(getNewsletterData($db, 1));
        $yesterdaySubscribersAmount = echoResult(getNewsletterData($db, 0, 1));
        $allSubscribers = echoResult(getNewsletterData($db));
        $usersThisMonth = echoResult(getUsersAmount($db, 1));
        $allUsers = echoResult(getUsersAmount($db));
        // template
        $sitePath = '/view/site/dashboard/admin/dashboard.php';
        $graphData = '/config/graphdata/dataForAdminGraph.php';
        $optScript = $graphData;
        break;
}
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title><?php 
echo WEB_TITLE;
?>
</title>
<?php 
echo getCss(array('content/login', 'content/global'));
echo getJs(array('content/jquery-1.7.2.min', 'content/msgbox'));
?>
</head>
<body>
<script>
  var offset = 1508;
  var mov = 1;
  var backgroundheight = offset;
  function scrollbackground() {
      offset = (offset < mov) ? offset + (backgroundheight - mov) : offset - mov;
      $('#cloud').css('background-position', offset + "px");
      setTimeout(function() {
          scrollbackground()
      },50);
  };
  $(function() {
      var width = $(document.body).width() - 2;
      $("#p").animate({left: width - 100}, 2300, function() {
          $(this).hide()
      });
      $("#login-bar").animate({width: width}, 2300).animate({height: 80}, 500, function() {
                        </li>
                    <?php 
        }
        ?>
                <?php 
    }
    ?>
            </ul>
            <?php 
    echo page($total, $page, '', $pageshow, 'p');
    ?>
            <?php 
    echo getJs('content/jquery-1.7.2.min');
    ?>
            <?php 
    echo getJs('serverol/jquery.qqFace');
    ?>
            <script type="text/javascript">
                $(window).load(function(){
                        function replaceFaces(str){
                            var _str = str || '',
                                reg = /\[.+?\]/g,
                            _str = _str.replace(reg,function(a,b){
                                return '<img class="expimg" src="<?php 
    echo PUBLIC_PATH;
    ?>
images/' + faces[a] + '">';    
                            });
                            return _str;   
                        }
                        $('.layim_chatsay').each(function(){
         if (validateUser($db, $token)) {
             $_SESSION['validation'] = 'Du hast deine E-Mail Adresse erfolgreich bestätigt.';
             $_SESSION['valstatus'] = 1;
             $_SESSION['user_status'] = 'confirmed';
         } else {
             $_SESSION['validation'] = 'Du hast versucht deine E-Mail Adresse zu bestätigen. Leider ist die Überprüfung fehlgeschlagen. Wenn du eigenes Verschulden ausschließen kannst, melden sich bitte per E-Mail bei uns.';
             $_SESSION['valstatus'] = 0;
         }
         header('Location: /registrieren');
     } else {
         header('Location: /start');
     }
     break;
 case 'login':
     // Hauptmodels ausführen
     $scripts = getJs($allScripts, [], true);
     // Spezifische Models laden
     require_once APP_PATH . 'model/getUserData.php';
     require_once APP_PATH . 'model/updateLastLogin.php';
     // Case Controller laden
     require_once APP_PATH . 'control/loginController.php';
     // View zusammenbauen
     require_once APP_PATH . 'view/template/header.php';
     require_once APP_PATH . 'view/site/login.php';
     require_once APP_PATH . 'view/template/footer.php';
     break;
 case 'logout':
     unset($_SESSION);
     session_destroy();
     header('Location:' . createUrl(array('action' => 'start')));
     break;
Example #15
0
?>
" ></script>
	<script src="<?php 
echo getJs('redmond/jquery-ui-1.8.22.custom.min.js');
?>
" ></script>
	<script src="<?php 
echo getJs('jquery.easy-confirm-dialog.js');
?>
" ></script>
	<script src="<?php 
echo getJs('jquery.simpletip-1.3.1.pack.js');
?>
" ></script>
	<script src="<?php 
echo getJs('club_band.js');
?>
" ></script>
	
	
</head>
<body>
<div id="main_container">
	<div id="header">
		<?php 
$user = getLoginUserDetail();
//echo $user->role.'<pre>';
//print_r($user);die;
if (isLoggedIn()) {
    if ($user->role == 4) {
        $brand = $user->band_brand;
function loadJquery()
{
    global $adkportal, $boardurl;
    //Check it
    if (empty($adkportal['jquery_loaded'])) {
        //Load and print jquery
        echo getJs('jquery');
        //Yeah! Jquery loaded
        $adkportal['jquery_loaded'] = true;
    }
}
 <!-- footer --> 
  <footer id="footer">
   <div class="text-center padder clearfix"> 
    <p> <small>&copy; 2014 结邻公社</small> </p> 
   </div> 
  </footer> 
  <!-- / footer --> 
  <!-- Bootstrap --> 
  <!-- app --> 
<?php 
getJs(array('content/global', 'content/facebox', 'content/msgbox'));
//,'content/slider/bootstrap-slider'
if (isset($Document['footerjs']) && $Document['footerjs']) {
    getJs($Document['footerjs']);
}
?>
<div style="display:none"><img src="<?php 
echo IMG_PATH;
?>
content/gb_tip_layer.png" style="display:none" /></div>
 </body>
</html>
<?php

if (!defined('IN_XLP')) {
    exit('Access Denied');
}
getJs('global/jquery.qrcode.min');
?>
<style>
.pictureList ul {
	margin:0;
	padding:0;
}
.pictureList li {
	list-style-type:none;
	float:left;
	margin:3px
}
.show-pop-content {
	overflow-y:scroll;
	overflow-x:hidden;
	table-layout: fixed;
	word-wrap:break-word;
	word-break:break-all;
}
</style>
<div class="table-responsive show-pop-content" style="width:650px; height:400px;">
<section class="panel portlet-item"> 
<header class="panel-heading">商品详细信息</header> 
<ul class="list-group"> 
<li class="list-group-item" style="text-align:center"><img src="<?php 
echo getImgUrl($rs['goods_pic']);
         $scripts = getJs($allScripts, [], true);
         $gifts = getGifts($db, (int) $_SESSION['user_id']);
         // Template
         $menuPath = '/view/site/dashboard/user/menu.php';
         $sitePath = '/view/site/dashboard/user/gifts.php';
     } else {
         header('Location: /dashboard');
     }
     break;
 case 'contacts':
     require_once APP_PATH . 'model/getJs.php';
     require_once APP_PATH . 'model/getContacts.php';
     require_once APP_PATH . 'model/saveContact.php';
     require_once APP_PATH . 'model/updateContact.php';
     require_once APP_PATH . 'model/deleteContactLogo.php';
     $scripts = getJs($allScripts, ['maps' => 1, 'mapControl' => 1, 'tabControl' => 1], true);
     $contacts = getContacts($db);
     // controller
     require_once APP_PATH . 'control/contactsController.php';
     // Template
     $menuPath = '/view/site/dashboard/user/menu.php';
     $sitePath = '/view/site/dashboard/user/contacts.php';
     break;
 default:
     // DASHBOARD
     // Model
     require_once APP_PATH . 'model/getActivePackages.php';
     require_once APP_PATH . 'model/getAllPackages.php';
     require_once APP_PATH . 'model/bookPackage.php';
     require_once APP_PATH . 'model/sendBill.php';
     require_once APP_PATH . 'model/getJs.php';