public function add()
 {
     if (isset($_POST['vid_url']) && isset($_POST['jeu_id'])) {
         if (empty($_POST['jeu_id'])) {
             echo "3";
         }
         if (empty($_POST['vid_url'])) {
             echo "2";
         } else {
             if (!filter_var($_POST['vid_url'], FILTER_VALIDATE_URL)) {
                 echo "5";
             } else {
                 $verif = 0;
                 foreach (T_e_video_vid::findAll() as $t_e_video_vid) {
                     if ($t_e_video_vid->vid_url == $_POST['vid_url'] && $t_e_video_vid->jeu_id == $_POST['jeu_id']) {
                         echo "4";
                         $verif = 1;
                     }
                 }
                 if ($verif == 0) {
                     $newvideo = new T_e_video_vid();
                     $newvideo->jeu_id = parameters()["jeu_id"];
                     $newvideo->vid_url = parameters()["vid_url"];
                     echo "1";
                 }
             }
         }
     } else {
         echo "3";
     }
 }
 public function view()
 {
     $b = new T_e_jeuvideo_jeu(parameters()["id"]);
     $nbAvis = count(T_e_avis_avi::FindAll($b->jeu_id));
     for ($i = 0; $i < $nbAvis; $i++) {
         if (isset($_POST['pouce_id_avi' . $i]) && isset($_POST['pouce_id_cli' . $i]) && isset($_POST['submit_vert' . $i])) {
             if (T_j_avisrecommande_avr::countAvisrByClient($_POST['pouce_id_avi' . $i], $_POST['pouce_id_cli' . $i]) != 0) {
                 T_j_avisrecommande_avr::deleteD($_POST['pouce_id_avi' . $i], $_POST['pouce_id_cli' . $i]);
             } else {
                 if (T_j_avisdeconseille_avd::countAvisdByClient($_POST['pouce_id_avi' . $i], $_POST['pouce_id_cli' . $i]) != 0) {
                     T_j_avisdeconseille_avd::deleteD($_POST['pouce_id_avi' . $i], $_POST['pouce_id_cli' . $i]);
                 }
                 $recommend = new T_j_avisrecommande_avr($_POST['pouce_id_avi' . $i], $_POST['pouce_id_cli' . $i]);
             }
         }
     }
     for ($i = 0; $i < $nbAvis; $i++) {
         if (isset($_POST['rpouce_id_avi' . $i]) && isset($_POST['rpouce_id_cli' . $i]) && isset($_POST['submit_rouge' . $i])) {
             if (T_j_avisdeconseille_avd::countAvisdByClient($_POST['rpouce_id_avi' . $i], $_POST['rpouce_id_cli' . $i]) != 0) {
                 T_j_avisdeconseille_avd::deleteD($_POST['rpouce_id_avi' . $i], $_POST['rpouce_id_cli' . $i]);
             } else {
                 if (T_j_avisrecommande_avr::countAvisrByClient($_POST['rpouce_id_avi' . $i], $_POST['rpouce_id_cli' . $i]) != 0) {
                     T_j_avisrecommande_avr::deleteD($_POST['rpouce_id_avi' . $i], $_POST['rpouce_id_cli' . $i]);
                 }
                 $recommend = new T_j_avisdeconseille_avd($_POST['rpouce_id_avi' . $i], $_POST['rpouce_id_cli' . $i]);
             }
         }
     }
     $this->render("view", $b);
 }
 public function view()
 {
     try {
         $b = new T_e_jeuvideo_jeu(parameters()["id"]);
         $this->render("view", $b);
     } catch (Exception $e) {
         $this->render("error");
     }
 }
 public function view()
 {
     try {
         $b = new T_e_adresse_adr(parameters()["adr_id"]);
         $this->render("view");
     } catch (Exception $e) {
         (new SiteController())->render("index");
         $this->render("error");
     }
 }
 public function view()
 {
     try {
         $b = new T_e_client_cli(parameters()["cli_id"]);
         $this->render("view", $b);
     } catch (Exception $e) {
         //(new SiteController())->render("index");
         $this->render("error");
     }
 }
 public function view()
 {
     try {
         $b = new T_r_console_con(parameters()["id"]);
         $this->render("view");
     } catch (Exception $e) {
         (new SiteController())->render("index");
         $this->render("error");
     }
 }
 public function view()
 {
     try {
         $b = new T_e_photo_pho(parameters()["id"]);
         $this->render("view", $b);
     } catch (Exception $e) {
         print_r($e);
         (new SiteController())->render("index");
         $this->render("error");
     }
 }
示例#8
0
文件: router.php 项目: grlf/eyedock
function B2jContactParseRoute($segments)
{
    $vars = array();
    $parameters = parameters();
    foreach ($parameters as $index => $name) {
        if (isset($segments[$index])) {
            $vars[$name] = preg_replace('/[^A-Z0-9_]/i', "", $segments[$index]);
        } else {
            break;
        }
    }
    return $vars;
}
示例#9
0
function FoxContactParseRoute($segments)
{
    $vars = array();
    $parameters = parameters();
    foreach ($parameters as $index => $name) {
        if (isset($segments[$index])) {
            // $segments[$index] should be safe, but we don't trust the user input
            // Ony allows alphanumeric character and underscores. Forbid all the other stuff.
            $vars[$name] = preg_replace('/[^A-Z0-9_]/i', "", $segments[$index]);
        } else {
            // At the first missing parameter, we can't continue.
            // BuildRoute respect a specific order of the parameters.
            break;
        }
    }
    return $vars;
}
 public function addvideo()
 {
     $m = new message();
     if (isset(parameters()["input"])) {
         if (preg_match('/youtube/', parameters()['input'])) {
             $video = new T_E_VIDEO_VID();
             $videos = $video->findByGame(parameters()['jeu']);
             if (count($videos) != 0) {
                 $m->setFlash("Il y a déjà une video pour ce jeu");
             } else {
                 preg_match('/[\\?\\&]v=([^\\?\\&]+)/', parameters()['input'], $matches);
                 $video->addVideo(parameters()['jeu'], 'https://www.youtube.com/embed/' . $matches[1] . '?rel=0&showinfo=0&color=white&iv_load_policy=3');
             }
         } else {
             $m->setFlash("Ce n'est pas une url de youtube");
         }
     }
     $this->render("addvideo", T_E_JEUVIDEO_JEU::findAll());
 }
示例#11
0
?>
"
                       href="<?php 
echo route('enabled=' . (parameters()->enabled === 0 ? '' : '0'));
?>
">
                        <?php 
echo translate('Unpublished');
?>
                    </a>
                    <a class="<?php 
echo parameters()->enabled === 1 ? 'active' : '';
?>
"
                       href="<?php 
echo route('enabled=' . (parameters()->enabled === 1 ? '' : '1'));
?>
">
                        <?php 
echo translate('Published');
?>
                    </a>
                </div>
                <div class="scopebar-search">
                    <?php 
echo helper('grid.search', array('submit_on_clear' => true));
?>
                </div>
            </div>
            <div class="todo_table_container">
                <table class="table table-striped footable">
示例#12
0
<?
/**
 * @package     DOCman
 * @copyright   Copyright (C) 2011 - 2014 Timble CVBA. (http://www.timble.net)
 * @license     GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link        http://www.joomlatools.com
 */
defined('KOOWA') or die; ?>
<? if (parameters()->total): ?>

<?= helper('bootstrap.load', array(
    'package' => 'docman',
    'wrapper' => false
)) ?>

<div class="koowa">
    <div class="mod_docman mod_docman--categories <?= JFactory::getLanguage()->isRTL() ? ' koowa--rtl' : '' ?>">
    <?
    foreach ($categories as $category):
        $level      = $category->level;
        $next_level = $categories->hasNext() ? $categories->getInnerIterator()->current()->level : false;

        if ($level > $previous_level): // Start a new level ?>
        <ul <?= $params->show_icon ? ' class="mod_docman_icons"' :'' ?>>
        <? endif; ?>
            <li class="module_document module_document__level<?= $level ?>">
            <?= import('mod://site/docman_categories._category.html', array(
                'category' => $category,
                'params'   => $params
            )); ?>
        <? if ($next_level === false && $level >= $next_level): ?>
 public function add()
 {
     //verifications formulaire inscription
     $data = array();
     if (isset($_POST['cli_pseudo']) && isset($_POST['cli_motpasse']) && isset($_POST['mdp_confirm']) && isset($_POST['cli_mel']) && isset($_POST['mail_confirm']) && isset($_POST['cli_nom']) && isset($_POST['cli_prenom']) && isset($_POST['cli_telfixe']) && isset($_POST['cli_telportable'])) {
         $pattern = '/[\\[\\]* + ? | { } () ^ ." <> ! $ ; : § , ¨ & ~ \\\\ \\/ @ = ]/';
         $patterntelfixe = '/^0[1-58][0-9]{8}$/';
         $patterntelport = '/^0[67][0-9]{8}$/';
         $pattern_nom = '/[0-9\\[\\]* + ? | { } () ^ ." <> ! $ ; : § , ¨ & ~ \\\\ \\/ @ = ]/';
         //verif civilité
         if (empty($_POST['cli_civilite'])) {
             $msgerror = "Veuillez choisir une civilité";
             $data[] = $msgerror;
         }
         //verif pseudos
         if (empty($_POST['cli_pseudo'])) {
             $msgerror = "Le champ Pseudo est vide";
             $data[] = $msgerror;
         } elseif (preg_match($pattern, $_POST['cli_pseudo'])) {
             $msgerror = "Caractères spéciaux interdits dans le champ Pseudo";
             $data[] = $msgerror;
         }
         $listeclients = T_e_client_cli::findAll();
         foreach ($listeclients as $t_e_client_cli) {
             if (strtolower($_POST['cli_pseudo']) == strtolower($t_e_client_cli->cli_pseudo)) {
                 $msgerror = "Pseudo déjà enregistré";
                 $data[] = $msgerror;
             }
         }
         //verifs mdp & confirmation
         if (empty($_POST['cli_motpasse'])) {
             $msgerror = "Le champ Mot de passe est vide";
             $data[] = $msgerror;
         }
         if (empty($_POST['mdp_confirm'])) {
             $msgerror = "Le champ Confirmez votre mot de passe est vide";
             $data[] = $msgerror;
         }
         if (preg_match($pattern, $_POST['cli_motpasse'])) {
             $msgerror = "Caractères spéciaux interdits dans le champ Mot de passe";
             $data[] = $msgerror;
         }
         if (strlen($_POST['cli_motpasse']) < 8 || strlen($_POST['cli_motpasse']) > 15) {
             $msgerror = "Le mot de passe doit contenir entre 8 et 15 caractères alphanumériques";
             $data[] = $msgerror;
         }
         if ($_POST['cli_motpasse'] != $_POST['mdp_confirm']) {
             $msgerror = "Le mot de passe et la confirmation ne correspondent pas";
             $data[] = $msgerror;
         }
         //verif mail
         if (empty($_POST['cli_mel'])) {
             $msgerror = "Le champ Adresse email est vide";
             $data[] = $msgerror;
         } else {
             if (!filter_var($_POST['cli_mel'], FILTER_VALIDATE_EMAIL)) {
                 $msgerror = "Le format de l'adresse mail est invalide";
                 $data[] = $msgerror;
             }
         }
         $listeclients = T_e_client_cli::findAll();
         foreach ($listeclients as $t_e_client_cli) {
             if ($_POST['cli_mel'] == $t_e_client_cli->cli_mel) {
                 $msgerror = "Adresse email déjà utilisée";
                 $data[] = $msgerror;
             }
         }
         if (empty($_POST['mail_confirm'])) {
             $msgerror = "Le champ Confirmez votre adresse email est vide";
             $data[] = $msgerror;
         }
         if ($_POST['cli_mel'] != $_POST['mail_confirm']) {
             $msgerror = "L\\'email et la confirmation ne correspondent pas";
             $data[] = $msgerror;
         }
         //verif nom et prenom
         if (empty($_POST['cli_nom'])) {
             $msgerror = "Le champ Nom est vide";
             $data[] = $msgerror;
         } elseif (preg_match($pattern_nom, $_POST['cli_nom'])) {
             $msgerror = "Veuillez rentrer un nom valide";
             $data[] = $msgerror;
         }
         if (empty($_POST['cli_prenom'])) {
             $msgerror = "Le champ Prénom est vide";
             $data[] = $msgerror;
         } elseif (preg_match($pattern_nom, $_POST['cli_prenom'])) {
             $msgerror = "Veuillez rentrer un prénom valide";
             $data[] = $msgerror;
         }
         //verif tel
         if (empty($_POST['cli_telfixe']) && empty($_POST['cli_telportable'])) {
             $msgerror = "Au moins un numéro de téléphone doit être renseigné";
             $data[] = $msgerror;
         }
         if (!empty($_POST['cli_telfixe']) && !preg_match($patterntelfixe, $_POST['cli_telfixe'])) {
             $msgerror = "Format téléphone fixe invalide";
             $data[] = $msgerror;
         }
         if (!empty($_POST['cli_telportable']) && !preg_match($patterntelport, $_POST['cli_telportable'])) {
             $msgerror = "Format téléphone portable invalide";
             $data[] = $msgerror;
         }
         foreach ($listeclients as $t_e_client_cli) {
             if ($_POST['cli_telportable'] == $t_e_client_cli->cli_telportable && $_POST['cli_telportable'] != null) {
                 $msgerror = "Numéro de téléphone portable déjà utilisé";
                 $data[] = $msgerror;
                 break;
             }
         }
         if (!empty($data)) {
             $this->render("add", $data);
         } else {
             $client = new T_e_client_cli();
             $client->cli_mel = parameters()["cli_mel"];
             $client->cli_motpasse = md5(parameters()["cli_motpasse"]);
             $client->cli_pseudo = parameters()["cli_pseudo"];
             $client->cli_civilite = parameters()["cli_civilite"];
             $client->cli_nom = parameters()["cli_nom"];
             $client->cli_prenom = parameters()["cli_prenom"];
             $client->cli_telfixe = parameters()["cli_telfixe"];
             $client->cli_telportable = parameters()["cli_telportable"];
             $client2 = new T_e_client_cli($client->cli_id);
             $_SESSION['client'] = serialize($client2);
             $c = new SiteController();
             $c->index();
         }
     } else {
         $this->render("add");
     }
 }
示例#14
0
}
if (isset($_GET)) {
    foreach ($_GET as $k => $v) {
        $parameters[$k] = $v;
    }
}
// Pour accès ultérieur sans "global"
function parameters()
{
    global $parameters;
    return $parameters;
}
// Gestion des la route : paramètre r = controller/action
if (isset(parameters()["r"])) {
    try {
        $route = parameters()["r"];
        if (strpos($route, "/") === FALSE) {
            list($controller, $action) = array($route, "index");
        } else {
            list($controller, $action) = explode("/", $route);
        }
        $controller = ucfirst($controller) . "Controller";
        $c = new $controller();
        $c->{$action}();
    } catch (Exception $e) {
        $c = new SiteController();
        $c->error404();
    }
} else {
    $c = new SiteController();
    $c->index();
示例#15
0
<ktml:script src="media://koowa/com_files/js/files.compact.js" />

<script>
Files.sitebase = '<?= $sitebase; ?>';
Files.token = '<?= $token; ?>';

window.addEvent('domready', function() {
	var config = <?= json_encode(KObjectConfig::unbox(parameters()->config)); ?>,
		options = {
            cookie: {
                path: '<?=object('request')->getSiteUrl()?>'
            },
            root_text: <?= json_encode(translate('Root folder')) ?>,
			editor: <?= json_encode(parameters()->editor); ?>,
			types: <?= json_encode(KObjectConfig::unbox(parameters()->types)); ?>,
			container: <?= json_encode($container ? $container->toArray() : null); ?>
		};
	options = Object.append(options, config);

	Files.app = new Files.Compact.App(options);

    <? if ($can_upload): ?>
    $('files-new-folder-create').addEvent('click', function(e){
        e.stop();

        var element = $('files-new-folder-input'),
            value = element.get('value');

        if (value.length > 0) {
            var folder = new Files.Folder({name: value, folder: Files.app.getPath()});
示例#16
0
"
            ><?php 
        echo translate('Edit');
        ?>
</a>
        <?php 
    }
    ?>

        <?php 
    // Delete
    ?>
        <?php 
    if ($show_delete) {
        $data = array('method' => 'post', 'url' => (string) route('view=task&id=' . $task->id), 'params' => array('csrf_token' => object('user')->getSession()->getToken(), '_action' => 'delete', '_referrer' => base64_encode((string) object('request')->getUrl())));
        if (parameters()->view == 'task') {
            if ((string) object('request')->getReferrer()) {
                $data['params']['_referrer'] = base64_encode((string) object('request')->getReferrer());
            } else {
                $data['params']['_referrer'] = base64_encode(JURI::base());
            }
        }
        ?>
            <?php 
        echo helper('behavior.deletable');
        ?>
            <a class="btn <?php 
        echo $button_size;
        ?>
 btn-danger todo-deletable" href="#" rel="<?php 
        echo escape(json_encode($data));
示例#17
0
                             <?php 
 }
 ?>
                         </td>
                         <td>
                             <?php 
 echo escape($document->getAuthor()->getName());
 ?>
                         </td>
                         <td>
                             <?php 
 echo helper('date.format', array('date' => $document->created_on));
 ?>
                         </td>
                         <?php 
 if (!parameters()->category) {
     ?>
                         <td class="docman_table__category_field">
                             <div class="koowa_wrapped_content">
                                 <div class="whitespace_preserver">
                                     <?php 
     echo helper('grid.document_category', array('entity' => $document));
     ?>
                                 </div>
                             </div>
                         </td>
                         <?php 
 }
 ?>
                         <td style="text-align: center;">
                             <?php 
                            'attribs' => array(
                                'onchange' => 'this.form.submit()',
                                'class' => 'input-block-level'
                            )
                        )); ?>
                    </div>
                </div>
                <h3><?= translate('Find documents by date') ?></h3>
                <div class="sidebar-panel">
                    <div class="controls find-by-date">
                        <label for="day_range"><?= translate('Within') ?></label>
                        <?= helper('listbox.day_range') ?>

                        <label for="search_date"><?= translate('days of') ?></label>
                        <?= helper('behavior.calendar', array(
                            'name' => 'search_date',
                            'id'   => 'search_date',
                            'format' => '%Y-%m-%d',
                            'value' => parameters()->search_date,
                            'attribs' => array('placeholder' => date('Y-m-d'))
                        )) ?>
                        <div style="text-align: center;">
                            <button id="search_submit" class="btn btn-primary"><i class="icon-search icon-white"></i></button>
                            <button id="search_clear" class="btn"><?= translate('Clear'); ?></button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
示例#19
0
                                </span>
                            </span>
                        </span>
                    </span>
                    </td>
                </tr>
            <? endforeach; ?>
            </tbody>
        </table>
    <? endif; ?>


    <? // Documents table | Import child template from documents view ?>
    <? if (parameters()->total): ?>
        <?= import('com://site/docman.documents.table.html') ?>

    <? // Pagination ?>
        <?= helper('paginator.pagination', array_merge(array(
            'total'      => parameters()->total,
            'show_limit' => (bool) $params->show_document_sort_limit
        ), parameters()->toArray())) ?>

    <? elseif ($category->id): ?>
        <p class="alert alert-info">
            <?= translate('You do not have any documents in this category.'); ?>
        </p>
    <? endif; ?>

    </form>
</div>
示例#20
0
                                <td>
                                    <?= escape($category->getAuthor()->getName()); ?>
                                </td>
                                <td>
                                    <?= helper('date.format', array('date' => $category->created_on)); ?>
                                </td>
                                <td class="hidden-phone" style="text-align: center">
                                    <a href="<?= route('view=documents&category='.$category->id)?>">
                                        <?= $category->document_count; ?>
                                    </a>
                                </td>
                                <td style="text-align: right;">
                                    <?= helper('grid.order', array(
                                        'entity' => $category,
                                        'total' => parameters()->total,
                                        'sort' => parameters()->sort === 'custom' ? 'ordering' : parameters()->sort)) ?>
                                </td>
                            </tr>
                            <? endforeach ?>
                            <? if(!count($categories)) : ?>
                            <tr>
                                <td colspan="20" style="text-align: center;">
                                    <?= translate('No categories found.') ?>
                                </td>
                            </tr>
                            <? endif ?>
                        </tbody>

                        <? if (count($categories)): ?>
                        <tfoot>
                            <tr>
示例#21
0
?>
</span>
                </button>
            </div>

            <!-- Search -->
            <div class="k-scopebar__item k-scopebar__item--search">
                <?php 
echo helper('grid.search', array('submit_on_clear' => false, 'placeholder' => @translate('Find by file or folder name&hellip;')));
?>
            </div>

        </div><!-- .k-scopebar -->

        <?php 
if (!isset(parameters()->config->can_upload) || parameters()->config->can_upload) {
    ?>
            <?php 
    echo import('uploader.html');
    ?>
        <?php 
}
?>

        <div class="k-flex-wrapper k-position-relative">
            <div id="files-grid-container">
                <div id="files-grid"></div>
                <div class="k-table-pagination" id="files-paginator-container">
                    <?php 
echo helper('paginator.pagination');
?>
</h3>
                <div class="sidebar-panel">
                    <div class="controls find-by-date">
                        <label for="day_range"><?php 
echo translate('Within');
?>
</label>
                        <?php 
echo helper('listbox.day_range');
?>

                        <label for="search_date"><?php 
echo translate('days of');
?>
</label>
                        <?php 
echo helper('behavior.calendar', array('name' => 'search_date', 'id' => 'search_date', 'format' => '%Y-%m-%d', 'value' => parameters()->search_date, 'attribs' => array('placeholder' => date('Y-m-d'))));
?>
                        <div style="text-align: center;">
                            <button id="search_submit" class="btn btn-primary"><i class="icon-search icon-white"></i></button>
                            <button id="search_clear" class="btn"><?php 
echo translate('Clear');
?>
</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
示例#23
0
<ktml:module position="submenu">
    <ktml:toolbar type="menubar">
</ktml:module>

<ktml:module position="toolbar">
    <ktml:toolbar type="actionbar" title="COM_SUPPORT_SUBMENU_TICKETS" icon="task icon-stack">
</ktml:module>

<div class="support-container">
    <div class="support_admin_list_grid">
        <form action="" method="get" class="-koowa-grid">
            <div class="scopebar">
                <div class="scopebar-group last hidden-tablet hidden-phone">
                    <?php 
echo helper('status.filterButtons', array('active_status' => parameters()->status));
?>
                </div>
                <div class="scopebar-search">
                    <?php 
echo helper('grid.search', array('submit_on_clear' => true));
?>
                </div>
            </div>
            <div class="support_table_container">
                <table class="table table-striped footable">
                    <thead>
                        <tr>
                            <th style="text-align: center;" width="1">
                                <?php 
echo helper('grid.checkall');
示例#24
0
<ktml:script src="media://koowa/com_files/js/files.compact.js" />

<script>
Files.sitebase = '<?= $sitebase; ?>';
Files.token = '<?= $token; ?>';

window.addEvent('domready', function() {
	var config = <?= json_encode(KObjectConfig::unbox(parameters()->config)); ?>,
		options = {
            cookie: {
                path: '<?=object('request')->getSiteUrl()?>'
            },
            root_text: <?= json_encode(translate('Root folder')) ?>,
			editor: <?= json_encode(parameters()->editor); ?>,
			types: <?= json_encode(parameters()->types); ?>,
			container: <?= json_encode($container ? $container->toArray() : null); ?>
		};
	options = Object.append(options, config);

	Files.app = new Files.Compact.App(options);

    <? if ($can_upload): ?>
    $('files-new-folder-create').addEvent('click', function(e){
        e.stop();

        var element = $('files-new-folder-input'),
            value = element.get('value');

        if (value.length > 0) {
            var folder = new Files.Folder({name: value, folder: Files.app.getPath()});
示例#25
0
	include_once('ressources/class.artica.inc');
	include_once('ressources/class.ini.inc');
	include_once('ressources/class.system.network.inc');
	include_once('ressources/class.squid.inc');
	include_once('ressources/class.ccurl.inc');
	include_once("ressources/class.compile.ufdbguard.expressions.inc");
	
	$user=new usersMenus();
	if($user->AsDansGuardianAdministrator==false){
		$tpl=new templates();
		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	
	if(isset($_GET["page"])){page();exit;}
	if(isset($_GET["parameters"])){parameters();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_POST["ufdbCatInterface"])){Save();exit;}
	tabs();
	
	
	
function tabs(){
	$tpl=new templates();
	$page=CurrentPageName();
	$users=new usersMenus();
	$sock=new sockets();
	
	$fontsize=18;
	$array["page"]='{APP_UFDBCAT}';
	$array["verify"]='{databases_status}';
示例#26
0
    <? // Sorting ?>
    <? if ($params->show_document_sort_limit): ?>
    <div class="docman_block">
        <div class="docman_sorting btn-group form-search">
            <label for="sort-documents" class="control-label"><?= translate('Order by') ?></label>
            <?= helper('paginator.sort_documents', array(
                'attribs'   => array('class' => 'input-medium', 'id' => 'sort-documents')
            )); ?>
        </div>
    </div>
    <? endif; ?>

    <? // Documents & pagination  ?>
    <form action="" method="get" class="-koowa-grid">

        <? // Document list | Import child template from documents view ?>
        <?= import('com://site/docman.documents.list.html', array(
            'documents' => $documents,
            'params' => $params
        ))?>

        <? // Pagination ?>
        <? if ($params->show_pagination !== '0' && parameters()->total): ?>
            <?= helper('paginator.pagination', array(
                'show_limit' => (bool) $params->show_document_sort_limit
            )) ?>
        <? endif; ?>

    </form>
</div>
示例#27
0
	include_once('ressources/class.users.menus.inc');
	include_once('ressources/class.maincf.multi.inc');
	
	
$users=new usersMenus();
if(!$users->AsPostfixAdministrator){
	$tpl=new templates();
	$ERROR_NO_PRIVS=$tpl->javascript_parse_text("{ERROR_NO_PRIVS}");
	echo "alert('$ERROR_NO_PRIVS');";
	die();
	
}

	if(isset($_GET["popup"])){popup();exit;}
	if(isset($_GET["index"])){index();exit;}
	if(isset($_GET["settings"])){parameters();exit;}
	if(isset($_GET["dnsbl"])){dnsbl();exit;}
	if(isset($_GET["dnsbl-list"])){dnsbl_list();exit;}
	if(isset($_GET["dnsbl-add"])){dnsbl_add();exit;}
	if(isset($_GET["dnsbl-delete"])){dnsbl_delete();exit;}
	if(isset($_GET["postscreen_dnsbl_action"])){saveConfig();exit;}
	if(isset($_GET["postscreen_bare_newline_enable"])){saveConfig();exit;}
	
	
	
	if(isset($_GET["EnablePostScreen"])){EnablePostScreen_edit();exit;}

js();


 public function addFav()
 {
     $b = new T_j_favori_fav(parameters()["id"]);
 }
示例#29
0
if ($user->AsSquidAdministrator == false) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    die;
    exit;
}
if (isset($_GET["services-status"])) {
    services_status();
    exit;
}
if (isset($_GET["tabs"])) {
    tabs();
    exit;
}
if (isset($_GET["parameters"])) {
    parameters();
    exit;
}
if (isset($_POST["EnableRDPProxy"])) {
    EnableRDPProxy();
    exit;
}
if (isset($_GET["members"])) {
    members();
    exit;
}
if (isset($_GET["members-search"])) {
    members_search();
    exit;
}
if (isset($_GET["members-js"])) {
示例#30
0
<?php

/**
 * Nooku Framework - http://nooku.org/framework
 *
 * @copyright	Copyright (C) 2011 - 2014 Johan Janssens and Timble CVBA. (http://www.timble.net)
 * @license		GNU GPLv3 <http://www.gnu.org/licenses/gpl.html>
 * @link		http://github.com/nooku/nooku-files for the canonical source repository
 */
defined('KOOWA') or die;
$can_upload = isset(parameters()->config['can_upload']) ? parameters()->config['can_upload'] : true;
?>

<?php 
echo import('com:files.files.scripts.html');
?>

<ktml:script src="assets://files/js/files.compact.js" />


<?php 
if ($can_upload) {
    ?>
    <div id="koowa_dialog__file_dialog_upload">
        <?php 
    echo import('com:files.files.uploader.html', array('multi_selection' => false));
    ?>
    </div>
<?php 
}