コード例 #1
0
ファイル: linkbanner.php プロジェクト: sea75300/affiliat_r
<?php

/**
 * Bewerbungsform ausgeben
 * @author Stefan Seehafer <*****@*****.**>
 * @copyright (c) 2013-2015, Stefan Seehafer
 * @license http://www.gnu.org/licenses/gpl.txt GPLv3
 */
include __DIR__ . '/affiliatr_functions.php';
$baseCtrl = new \contrl\base_contrl();
$config = new model\system_config($baseCtrl->getDbconnection());
if ($config->getSystemMode() == 2) {
    die(basename(__FILE__) . ' should be used with system mode "iframe"!');
}
$maxSize = array();
$maxWidth = $baseCtrl->getRequestVar('maxwidth');
$maxHeight = $baseCtrl->getRequestVar('maxheight');
if (!is_null($maxWidth)) {
    $maxSize['width'] = $maxWidth;
}
if (!is_null($maxHeight)) {
    $maxSize['height'] = $maxHeight;
}
?>
<!DOCTYPE HTML>
<HTML lang="de">
    <head>
        <title>Affiliat*r - <?php 
print $config->getSysVersion();
?>
</title>
コード例 #2
0
ファイル: affiliates.php プロジェクト: sea75300/affiliat_r
<?php

/**
 * Affiliates ausgeben
 * @author Stefan Seehafer <*****@*****.**>
 * @copyright (c) 2013-2015, Stefan Seehafer
 * @license http://www.gnu.org/licenses/gpl.txt GPLv3
 */
include __DIR__ . '/affiliatr_functions.php';
$baseCtrl = new \contrl\base_contrl();
$config = new model\system_config($baseCtrl->getDbconnection());
if ($config->getSystemMode() == 2) {
    die(basename(__FILE__) . ' should be used with system mode "iframe"!');
}
$textToBool = array('true' => true, 'false' => false);
$categoryId = $baseCtrl->getRequestVar('category');
$acceptedOnly = is_null($baseCtrl->getRequestVar('acceptedonly')) ? true : $textToBool[$baseCtrl->getRequestVar('acceptedonly')];
$textOnly = is_null($baseCtrl->getRequestVar('textonly')) ? 0 : (int) $baseCtrl->getRequestVar('textonly');
$openBlank = is_null($baseCtrl->getRequestVar('openblank')) ? false : $textToBool[$baseCtrl->getRequestVar('openblank')];
?>

<!DOCTYPE HTML>
<HTML lang="de">
    <head>
        <title>Affiliat*r - <?php 
print $config->getSysVersion();
?>
</title>
        <meta http-equiv="content-type" content= "text/html; charset=utf-8">
        <meta name="robots" content="noindex, nofollow">  
        <link rel="stylesheet" type="text/css" href="<?php 
コード例 #3
0
ファイル: index.php プロジェクト: sea75300/affiliat_r
<?php

/**
 * Index, main file
 * @author Stefan Seehafer <*****@*****.**>
 * @copyright (c) 2013-2015, Stefan Seehafer
 * @license http://www.gnu.org/licenses/gpl.txt GPLv3
 */
include __DIR__ . '/inc/common.php';
include __DIR__ . '/inc/controllers.php';
date_default_timezone_set('Europe/Berlin');
$module = isset($_GET['module']) ? contrl\base_contrl::filterRequest($_GET['module'], array(1, 4, 7)) : '';
$controllerName = isset($controllers[$module]) ? $controllers[$module] : 'system\\login';
if (!class_exists($controllerName)) {
    die("The controller class <b>{$module}</b> does not exist!");
}
$controller = new $controllerName();
if (!is_a($controller, 'contrl\\base_contrl')) {
    die("The controller module <b>{$module}</b> must be an instance of <b>contrl\\base_contrl</b> and contain a method <b>process()</b>!");
}
$controller->process();
コード例 #4
0
ファイル: apply.php プロジェクト: sea75300/affiliat_r
<?php

/**
 * Bewerbungsform ausgeben
 * @author Stefan Seehafer <*****@*****.**>
 * @copyright (c) 2013-2015, Stefan Seehafer
 * @license http://www.gnu.org/licenses/gpl.txt GPLv3
 */
include __DIR__ . '/affiliatr_functions.php';
$baseCtrl = new \contrl\base_contrl();
$config = new model\system_config($baseCtrl->getDbconnection());
if ($config->getSystemMode() == 2) {
    die(basename(__FILE__) . ' should be used with system mode "iframe"!');
}
?>
<!DOCTYPE HTML>
<HTML lang="de">
    <head>
        <title>Affiliat*r - <?php 
print $config->getSysVersion();
?>
</title>
        <meta http-equiv="content-type" content= "text/html; charset=utf-8">
        <meta name="robots" content="noindex, nofollow">  
        <link rel="stylesheet" type="text/css" href="<?php 
print $config->getIframecss();
?>
">
    </head> 
    
    <body>