示例#1
0
function sys_var($setting_name) {
  try{
    $setting = New Setting(array('name' => $setting_name,'owner_id' => 0));
    $value = $setting->getValue();
  } catch (fNotFoundException $e) {
    $setting = $GLOBALS['default_plugin_settings'][$setting_name];
    $value = $setting['default']; 
  }   
  return $value;
}
示例#2
0
 /**
  * 
  */
 public function showFrontPage()
 {
     $this->subdirectory = '/';
     $this->template = '/default/view.tpl';
     $this->path = '/index';
     if ($this->getClearRender()) {
         $competitionGenders = array(GENDER_HEREN_NEFUB_NAME, GENDER_DAMES_NEFUB_NAME, GENDER_MIXED_NEFUB_NAME);
         $aCompetitions = array();
         foreach ($competitionGenders as $competitionGender) {
             $oGender = Gender::getByNefubName($competitionGender);
             $aGenreCompetitions = Competition::getAll(array('gender_id' => $oGender->getId(), 'season_nefub_id' => $this->season->nefub_id), 'genre_id`,`name');
             $aCompetitions = array_merge($aCompetitions, $aGenreCompetitions);
         }
         $this->assign('aCompetitions', $aCompetitions);
         $plannedGames = Game::getPlannedGamesSorted($this->season, Setting::getValue('front_limit_calendar_days'));
         $sortedCalendar = array();
         foreach ($plannedGames as $oGame) {
             if (!isset($sortedCalendar[$oGame->date])) {
                 $sortedCalendar[$oGame->date] = array('events' => array(), 'games' => array());
             }
             $sortedCalendar[$oGame->date]['games'][] = $oGame;
         }
         $plannedEvents = Event::getPlannedEvents();
         foreach ($plannedEvents as $oEvent) {
             if (!isset($sortedCalendar[$oEvent->date])) {
                 $sortedCalendar[$oEvent->date] = array('events' => array(), 'games' => array());
                 $sortedCalendar[$oEvent->date]['events'][] = $oEvent;
             }
         }
         ksort($sortedCalendar);
         $this->assign('plannedGames', $plannedGames);
         $this->assign('plannedEvents', $plannedEvents);
         $this->assign('sortedCalendar', $sortedCalendar);
         $aResultGames = Game::getRecentGamesSorted($this->season, Setting::getValue('front_limit_results'));
         $this->assign('aResultGames', $aResultGames);
         $this->assign('home', true);
         $this->assign('updateTime', time());
     }
     $this->showOutput();
 }
示例#3
0
 /** Method that fetches admins from database for JQuery Data Table
  * @param string $column Column name of the data to be fetched
  * @param string $condition Additional condition e.g category_id > 9
  * @param string $sort column name to be used as sort parameter
  * @return JSON JSON encoded admin details
  */
 public function fetchForJQDT($draw, $totalData, $totalFiltered, $customSql = "", $column = "*", $condition = "", $sort = "id")
 {
     $sql = "SELECT {$column} FROM admin ORDER BY {$sort}";
     if (!empty($condition)) {
         $sql = "SELECT {$column} FROM admin WHERE {$condition} ORDER BY {$sort}";
     }
     if ($customSql != "") {
         $sql = $customSql;
     }
     $data = $this->dbObj->fetchAssoc($sql);
     $result = array();
     if (count($data) > 0) {
         foreach ($data as $r) {
             $fetAdminRole = 'icon-check-empty';
             $fetAdminRolCol = 'btn-warning';
             $fetAdminRolTit = "Upgrade Admin";
             if ($r['role'] == "Admin") {
                 $fetAdminRole = 'icon-check';
                 $fetAdminRolCol = 'btn-success';
                 $fetAdminRolTit = "Degrade Admin";
             }
             $deleteActionLink = '<button data-role="' . $r['role'] . '" data-name="' . $r['name'] . '" data-id="' . $r['id'] . '" class="btn ' . $fetAdminRolCol . ' btn-small upgrade-admin"  title="' . $fetAdminRolTit . '"><i class="btn-icon-only ' . $fetAdminRole . '"> </i></button> <button data-role="' . $r['role'] . '" data-id="' . $r['id'] . '" data-name="' . $r['name'] . '" class="btn btn-danger btn-small delete-admin" title="Delete"><i class="btn-icon-only icon-trash"> </i></button>';
             $multiActionBox = '<input type="checkbox" class="multi-action-box" data-id="' . $r['id'] . '" data-role="' . $r['role'] . '" />';
             if ($r['role'] == "Admin" && $r['email'] == trim(stripcslashes(strip_tags(Setting::getValue($this->dbObj, 'COMPANY_EMAIL'))))) {
                 $deleteActionLink = '';
                 $multiActionBox = '';
             }
             $result[] = array(utf8_encode($multiActionBox), $r['id'], utf8_encode($r['name']), utf8_encode($r['email']), utf8_encode($r['username']), utf8_encode($r['role']), utf8_encode($r['date_registered']), utf8_encode(' <button data-role="' . $r['role'] . '" data-name="' . $r['name'] . '" data-email="' . $r['email'] . '"  data-username="******" data-id="' . $r['id'] . '" class="btn btn-info btn-small edit-admin"  title="Edit"><i class="btn-icon-only icon-pencil"> </i></button> ' . $deleteActionLink));
         }
         $json = array("status" => 1, "draw" => intval($draw), "recordsTotal" => intval($totalData), "recordsFiltered" => intval($totalFiltered), "data" => $result);
     } else {
         $json = array("status" => 2, "msg" => "Necessary parameters not set. Or empty result. " . mysqli_error($this->dbObj->connection), "draw" => intval($draw), "recordsTotal" => intval($totalData), "recordsFiltered" => intval($totalFiltered), "data" => false);
     }
     $this->dbObj->close();
     header('Content-type: application/json');
     return json_encode($json);
 }
<?php

$max_age_season_details = Setting::getValue('max_age_season_details');
$max_age_competition_details = Setting::getValue('max_age_competition_details');
$max_age_poule_details = Setting::getValue('max_age_poule_details');
$max_age_person_details = Setting::getValue('max_age_person_details');
$max_age_team_details = Setting::getValue('max_age_team_details');
$max_age_team_results = Setting::getValue('max_age_team_results');
$max_age_team_schedule = Setting::getValue('max_age_team_schedule');
$max_age_club_details = Setting::getValue('max_age_club_details');
$max_age_location_details = Setting::getValue('max_age_location_details');
define('MAX_AGE_SEASON_DETAILS', $max_age_season_details);
define('MAX_AGE_COMPETITION_DETAILS', $max_age_competition_details);
define('MAX_AGE_POULE_DETAILS', $max_age_poule_details);
define('MAX_AGE_PERSON_DETAILS', $max_age_person_details);
define('MAX_AGE_TEAM_DETAILS', $max_age_team_details);
define('MAX_AGE_TEAM_RESULTS', $max_age_team_results);
define('MAX_AGE_TEAM_SCHEDULE', $max_age_team_schedule);
define('MAX_AGE_CLUB_DETAILS', $max_age_club_details);
define('MAX_AGE_LOCATION_DETAILS', $max_age_location_details);
class MapperRetriever extends Retriever
{
    protected $retrievedPersonNefubIds = array();
    protected $retrievedTeamGamesNefubIds = array();
    protected $retrievedTeamNefubIds = array();
    protected $retrievedClubNefubIds = array();
    protected $retrievedScheduledGameNefubIds = array();
    protected $retrievedLocationNefubIds = array();
    protected $addedNefubObjects;
    private static $instance;
    /**
示例#5
0
" />
    <meta property="twitter:title" content="<?php 
echo $thisPage->title;
?>
" />
    <meta property="twitter:description" content="<?php 
echo $thisPage->description;
?>
" />
    <meta property="og:image" content="<?php 
echo SITE_URL;
?>
images/favicon.png"/>
    <meta property="og:image:type" content="image/jpeg"/>
    <meta property="og:image:width" content="200"/>
    <meta property="og:image:height" content="200"/>
    <meta property="fb:admins" content="<?php 
echo FACEBOOK_ADMINS;
?>
" />
    <meta property="fb:app_id" content="<?php 
echo FACEBOOK_APP_ID;
?>
"/>
    <meta property="twitter_id" content="<?php 
echo TWITTER_ID;
?>
"/>
    <?php 
echo utf8_decode(Setting::getValue($dbObj, 'ANALYTICS'));
示例#6
0
</a></h4>
                                                                    <?php 
    } else {
        ?>
                                                                    <h4 class="media-heading"><a href="<?php 
        echo Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[3]) ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[3])))) : '';
        ?>
" ><?php 
        echo Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[1]) ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[1])))) : '';
        ?>
</a></h4>
                                                                    <?php 
    }
    ?>
                                                                    <p><?php 
    echo Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[2]) ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, $siteWidgetItem . $siteWidgetParams[2])))) : '';
    ?>
</p>            
                                                                </div>
                                                            </div>
                                                            <style scoped="scoped"> #un-icon-box-1 .un-icon{ background: #ffffff}#un-icon-box-1 .un-icon:hover{ background: #f71111}#un-icon-box-1 .media-heading{ color: #dddddd}#un-icon-box-1 .media-body p{ color: #f4f4f4}        </style>
                                                                
                                                        </div>
                                                    </div>
                                                    <?php 
}
?>
                                                </div>
                                            </div>
                                        </div>
                                    </div>    	        	
示例#7
0
<!--                        <div class="sc_socials_item">
                            <a href="<?php 
//echo DRIBBBLE_LINK;
?>
" target="_blank" class="social_icons social_dribbble" style="background-image: url(<?php 
//echo SITE_URL;
?>
themes/education/fw/images/socials/dribbble.png);"><span class="sc_socials_hover" style="background-image: url(<?php 
//echo SITE_URL;
?>
themes/education/fw/images/socials/dribbble.png);"></span>
                            </a>
                        </div>-->
                    </div>						
                </div>	<!-- /.content_wrap -->
            </footer>	<!-- /.contacts_wrap -->

            <div class="copyright_wrap">
                <div class="content_wrap">
                    <p>&copy; <?php 
$currYear = new DateTime();
echo $currYear->format('Y');
?>
 All Rights Reserved.</p> 
                </div>
            </div>
            <?php 
echo Setting::getValue($dbObj, 'ADDTHIS_SHARE_BUTTON') ? Setting::getValue($dbObj, 'ADDTHIS_SHARE_BUTTON') : '';
?>
            
<?php

define("FACEBOOK_APP_ID", Setting::getValue($dbObj, 'FACEBOOK_APP_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_APP_ID'))) : '');
define("FACEBOOK_ADMINS", Setting::getValue($dbObj, 'FACEBOOK_ADMINS') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_ADMINS'))) : '');
define("TWITTER_ID", Setting::getValue($dbObj, 'TWITTER_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'TWITTER_ID'))) : '');
define("WEBSITE_AUTHOR", Setting::getValue($dbObj, 'COMPANY_NAME') ? trim(strip_tags(Setting::getValue($dbObj, 'COMPANY_NAME'))) : '');
define("WELCOME_MESSAGE", Setting::getValue($dbObj, 'WELCOME_MESSAGE') ? Setting::getValue($dbObj, 'WELCOME_MESSAGE') : '');
define("FACEBOOK_LINK", Setting::getValue($dbObj, 'FACEBOOK_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_LINK')))) : '');
define("GOOGLEPLUS_LINK", Setting::getValue($dbObj, 'GOOGLEPLUS_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'GOOGLEPLUS_LINK')))) : '');
define("LINKEDIN_LINK", Setting::getValue($dbObj, 'LINKEDIN_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'LINKEDIN_LINK')))) : '');
define("TWITTER_LINK", Setting::getValue($dbObj, 'TWITTER_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'TWITTER_LINK')))) : '');
define("YOUTUBE_LINK", Setting::getValue($dbObj, 'YOUTUBE_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'YOUTUBE_LINK')))) : '');
define("COMPANY_HOTLINE", Setting::getValue($dbObj, 'COMPANY_HOTLINE') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_HOTLINE')))) : '');
define("COMPANY_EMAIL", Setting::getValue($dbObj, 'COMPANY_EMAIL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_EMAIL')))) : '');
define("COMPANY_ADDRESS", Setting::getValue($dbObj, 'COMPANY_ADDRESS') ? Setting::getValue($dbObj, 'COMPANY_ADDRESS') : '');
define("COMPANY_NUMBERS", Setting::getValue($dbObj, 'COMPANY_NUMBERS') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_NUMBERS')))) : '');
define("COMPANY_ACC_DETAILS", Setting::getValue($dbObj, 'COMPANY_ACC_DETAILS') ? Setting::getValue($dbObj, 'COMPANY_ACC_DETAILS') : '');
define("COMPANY_OTHER_EMAILS", Setting::getValue($dbObj, 'COMPANY_OTHER_EMAILS') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_OTHER_EMAILS')))) : '');
示例#9
0
 public function testSetting()
 {
     $set = new Setting(123, 'Theme', 'default');
     $this->assertEquals(123, $set->getID());
     $this->assertEquals('Theme', $set->getName());
     $this->assertEquals('default', $set->getValue());
 }
示例#10
0
                        </ul>
                    </li>
                    <li> <a href="#"><i class="fa fa-picture-o fa-2x"></i> Gallery Manager<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li> <a href="add-gallery-image">Add Images</a> </li>
                            <li> <a href="manage-gallery">Manage Gallery</a> </li>
                        </ul>
                    </li>
                    <li> <a href="#"><i class="fa fa-video-camera fa-2x"></i> Video Manager<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li> <a href="manage-videos">Add Video</a> </li>
                            <li> <a href="manage-videos">Manage Videos</a> </li>
                        </ul>
                    </li>
                    <?php 
if (isset($_SESSION['ITCadminEmail']) && $_SESSION['ITCadminEmail'] == trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_EMAIL'))))) {
    ?>
                    <li> <a href="#"><i class="fa fa-cog fa-2x"></i>Settings Manager<span class="fa arrow"></span></a>
                        <ul class="nav nav-second-level">
                            <li> <a href="manage-settings"><i class="fa fa-cogs fa-1x"></i> General Settings</a> </li>
                            <li> <a href="manage-webpages"><i class="fa fa-globe fa-1x"></i> Manage Web Pages</a> </li>
                        </ul>
                    </li>
                    <?php 
}
?>
                    <li>
                        <a  href="profile"><i class="fa fa-book fa-2x"></i> My Profile</a>
                    </li>
                    <li>
                        <a  href="#" class="logout"><i class="fa fa-sign-out fa-2x"></i> Logout</a>
<?php

$cfg->fbAppId = Setting::getValue($dbObj, 'FACEBOOK_APP_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_APP_ID'))) : '';
$cfg->fbAdmins = Setting::getValue($dbObj, 'FACEBOOK_ADMINS') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_ADMINS'))) : '';
$cfg->fbLink = Setting::getValue($dbObj, 'FACEBOOK_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_LINK')))) : '';
$cfg->twitterId = Setting::getValue($dbObj, 'TWITTER_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'TWITTER_ID'))) : '';
$cfg->twitterLink = Setting::getValue($dbObj, 'TWITTER_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'TWITTER_LINK')))) : '';
$cfg->author = Setting::getValue($dbObj, 'COMPANY_NAME') ? trim(strip_tags(Setting::getValue($dbObj, 'COMPANY_NAME'))) : '';
$cfg->gplusLink = Setting::getValue($dbObj, 'GOOGLEPLUS_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'GOOGLEPLUS_LINK')))) : '';
$cfg->linkedinLink = Setting::getValue($dbObj, 'LINKEDIN_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'LINKEDIN_LINK')))) : '';
$cfg->youTubeLink = Setting::getValue($dbObj, 'YOUTUBE_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'YOUTUBE_LINK')))) : '';
$cfg->pinterestLink = Setting::getValue($dbObj, 'PINTEREST_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'PINTEREST_LINK')))) : '';
$cfg->returnUrl = Setting::getValue($dbObj, 'RETURN_URL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'RETURN_URL')))) : '';
$cfg->companyEmail = Setting::getValue($dbObj, 'COMPANY_EMAIL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_EMAIL')))) : '';
<?php

define("FACEBOOK_APP_ID", Setting::getValue($dbObj, 'FACEBOOK_APP_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_APP_ID'))) : '');
define("FACEBOOK_ADMINS", Setting::getValue($dbObj, 'FACEBOOK_ADMINS') ? trim(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_ADMINS'))) : '');
define("TWITTER_ID", Setting::getValue($dbObj, 'TWITTER_ID') ? trim(strip_tags(Setting::getValue($dbObj, 'TWITTER_ID'))) : '');
define("WEBSITE_AUTHOR", Setting::getValue($dbObj, 'COMPANY_NAME') ? trim(strip_tags(Setting::getValue($dbObj, 'COMPANY_NAME'))) : '');
define("WELCOME_MESSAGE", Setting::getValue($dbObj, 'WELCOME_MESSAGE') ? Setting::getValue($dbObj, 'WELCOME_MESSAGE') : '');
define("FACEBOOK_LINK", Setting::getValue($dbObj, 'FACEBOOK_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'FACEBOOK_LINK')))) : '');
define("GOOGLEPLUS_LINK", Setting::getValue($dbObj, 'GOOGLEPLUS_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'GOOGLEPLUS_LINK')))) : '');
define("LINKEDIN_LINK", Setting::getValue($dbObj, 'LINKEDIN_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'LINKEDIN_LINK')))) : '');
define("TWITTER_LINK", Setting::getValue($dbObj, 'TWITTER_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'TWITTER_LINK')))) : '');
define("PINTEREST_LINK", Setting::getValue($dbObj, 'PINTEREST_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'PINTEREST_LINK')))) : '');
define("DRIBBBLE_LINK", Setting::getValue($dbObj, 'DRIBBLE_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'DRIBBLE_LINK')))) : '');
define("YOUTUBE_LINK", Setting::getValue($dbObj, 'YOUTUBE_LINK') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'YOUTUBE_LINK')))) : '');
define("COMPANY_HOTLINE", Setting::getValue($dbObj, 'COMPANY_HOTLINE') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_HOTLINE')))) : '');
define("COMPANY_EMAIL", Setting::getValue($dbObj, 'COMPANY_EMAIL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_EMAIL')))) : '');
define("COMPANY_ADDRESS", Setting::getValue($dbObj, 'COMPANY_ADDRESS') ? Setting::getValue($dbObj, 'COMPANY_ADDRESS') : '');
define("COMPANY_ADDRESS_GMAP", Setting::getValue($dbObj, 'COMPANY_ADDRESS_GMAP') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_ADDRESS_GMAP')))) : '');
define("COMPANY_NUMBERS", Setting::getValue($dbObj, 'COMPANY_NUMBERS') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_NUMBERS')))) : '');
define("COMPANY_ACC_DETAILS", Setting::getValue($dbObj, 'COMPANY_ACC_DETAILS') ? Setting::getValue($dbObj, 'COMPANY_ACC_DETAILS') : '');
define("COMPANY_OTHER_EMAILS", Setting::getValue($dbObj, 'COMPANY_OTHER_EMAILS') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'COMPANY_OTHER_EMAILS')))) : '');
define("SETTINGS_PANEL", Setting::getValue($dbObj, 'SETTINGS_PANEL') ? trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'SETTINGS_PANEL')))) : '');
                </div><!--/container-->
            </div>
            <!--/page-heading-->

            <?php 
include 'includes/sidebar-top.php';
?>
            <!--/Top sidebar-->    
            <div id="body" >
                <div class="container">
                    <div class="content-pad-3x">
                        <div class="row">
                            <div id="content" class="col-md-9" role="main">
                                <article class="single-page-content">
                                    <?php 
echo Setting::getValue($dbObj, 'ABOUT_US') ? Setting::getValue($dbObj, 'ABOUT_US') : '';
?>
                                </article>
                            </div><!--/content-->
                            <?php 
include 'includes/sidebar.php';
?>
<!--#sidebar-->
                        </div><!--/row-->
                    </div><!--/content-pad-3x-->
                </div><!--/container-->
            </div><!--/body-->
            <?php 
include 'includes/sidebar-bottom.php';
?>
            <?php 
示例#14
0
'
                        });
                    </script>
                    <?php 
    unset($_SESSION['msg']);
    unset($_SESSION['msgStatus']);
}
?>
                    </div>
<header class="top_panel_wrap bg_tint_dark" >
                <div class="menu_user_wrap">
                    <div class="content_wrap clearfix">
                        <div class="menu_user_area menu_user_right menu_user_nav_area">
                            <ul id="menu_user" class="menu_user_nav">
                                <?php 
if (trim(stripcslashes(strip_tags(Setting::getValue($dbObj, 'BOOKMARK_BUTTON')))) == "TRUE") {
    ?>
                                <li class="menu_user_bookmarks"><a href="#" class="bookmarks_show icon-star-1" title="Show bookmarks"></a>
                                    <ul class="bookmarks_list">
                                    <li><a href="#" class="bookmarks_add icon-star-empty" title="Add the current page into bookmarks">Add bookmark</a></li>
                                </ul>
                                </li>
                                <?php 
}
?>
                                <?php 
include 'login-section.php';
?>
                            </ul>
                        </div>
<!--                        <div class="menu_user_area menu_user_left menu_user_contact_area" <?php 
示例#15
0
 private function __construct()
 {
     $this->competition_retrieve_frequency = Setting::getValue('competition_retrieve_frequency');
 }
示例#16
0
define("CURRENT_PAGE", "courses");
require 'classes/WebPage.php';
//Set up page as a web page
$thisPage = new WebPage();
//Create new instance of webPage class
$dbObj = new Database();
//Instantiate database
$thisPage->dbObj = $dbObj;
$courseObj = new Course($dbObj);
$categoryObj = new CourseCategory($dbObj);
$clientObj = new Sponsor($dbObj);
$quoteObj = new Quote($dbObj);
$calendar = new Calendar($dbObj);
include 'includes/other-settings.php';
require 'includes/page-properties.php';
$recordPerPage = Setting::getValue($dbObj, 'TOTAL_DISPLAYABLE_COURSES') ? trim(strip_tags(Setting::getValue($dbObj, 'TOTAL_DISPLAYABLE_COURSES'))) : 100;
$pageNum = filter_input(INPUT_GET, 'page', FILTER_VALIDATE_INT) ? filter_input(INPUT_GET, 'page', FILTER_VALIDATE_INT) : 1;
$categoryParam = filter_input(INPUT_GET, 'category', FILTER_VALIDATE_INT) ? filter_input(INPUT_GET, 'category', FILTER_VALIDATE_INT) : 0;
$classParam = filter_input(INPUT_GET, 'class') ? filter_input(INPUT_GET, 'class') : '';
$classVal = '';
$classLink = '';
//Handler for sector based search
switch ($classParam) {
    case 'private-sector':
        $classVal = ' AND featured = 1 ';
        $classLink = 'private-sector/';
        $thisPage->title = "Private Sector Courses" . ' - ' . WEBSITE_AUTHOR;
        break;
    case 'public-sector':
        $classVal = ' AND featured = 0 ';
        $classLink = 'public-sector/';
示例#17
0
        $sDB_USER = '******';
        $sDB_PASS = '******';
        $sDB_NAME = 'nefub';
    }
}
define('HOST', $sHOST);
define('DTAP', $sDTAP);
define('DB_HOST', $sDB_HOST);
define('DB_USER', $sDB_USER);
define('DB_NAME', $sDB_NAME);
define('DB_PASS', $sDB_PASS);
//echo HOST .' - '.DB_HOST .' - '.DB_NAME .' - '.DB_USER .' - '.DB_PASS;
define('LOGIN', md5('admin_is_logged_in'));
define('NEFUB_ROOT', 'http://www.nefub.nl/competitie');
define('NEFUB_API', 'http://www.nefub.nl/API');
$limit = Setting::getValue('request_limit');
define('LIMIT_API_REQUESTS', $limit ? $limit : 100);
/*-------*/
define('TYPE_GROOTVELD_NEFUB_NAME', 'Grootveld');
define('TYPE_KLEINVELD_NEFUB_NAME', 'Kleinveld');
define('GENRE_BEKER_NEFUB_NAME', 'beker');
define('GENRE_COMPETITIE_NEFUB_NAME', 'competitie');
define('GENRE_JEUGD_NEFUB_NAME', 'jeugd');
define('GENDER_HEREN_NEFUB_NAME', 'Heren');
define('GENDER_DAMES_NEFUB_NAME', 'Dames');
define('GENDER_MIXED_NEFUB_NAME', 'Mixed');
require_once 'var_dump_path.php';
require_once 'smarty/Smarty.class.php';
$smarty = new Smarty();
$smarty->setTemplateDir('templates');
$smarty->setCompileDir('/smarty/templates_c');