Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezsurvey/user/datasupplier.php
Go to the documentation of this file.
1 <?php
4 // include_once( "ezsitemanager/classes/ezsection.php" );
5 // include_once( "ezuser/classes/ezpermission.php" );
6
7 $ini = eZINI::instance( 'site.ini' );
8 $user = eZUser::currentUser();
9
10 $GlobalSectionID = $ini->variable( "eZSurveyMain", "DefaultSection" );
11 $currentSiteDesign = (new eZSection())->siteDesign( $GlobalSectionID );
12 $hasPermission = ( eZPermission::checkPermission( $user, "eZSurvey", "ModuleAnswer" ) );
13
14 switch ( $url_array[2] )
15 {
16 case "surveylist":
17 {
18 if ( $hasPermission )
19 {
20 include ( "kernel/ezsurvey/user/surveylist.php" );
21 }
22 else
23 {
24 //eZHTTPTool::header( "Location: /novisagent/login/" );
25 //exit();
26 include ( "kernel/ezsurvey/user/surveylist.php" );
27 }
28 }
29 break;
30
31 case "thanks":
32 {
33 include ( "kernel/ezsurvey/user/thanks.php" );
34 }
35 break;
36 }
37
38 ?>
eZPermission\checkPermission
static checkPermission( $user, $moduleName, $permissionName)
Definition: ezpermission.php:430
eZSection
Definition: ezsection.php:45
eZUser\currentUser
static & currentUser()
Definition: ezuser.php:896
$url_array
$url_array
Definition: ezaddress/admin/datasupplier.php:34
$user
$user
Definition: ezsurvey/user/datasupplier.php:8
$currentSiteDesign
$currentSiteDesign
Definition: ezsurvey/user/datasupplier.php:11
$GlobalSectionID
$GlobalSectionID
Definition: ezsurvey/user/datasupplier.php:10
$ini
$ini
Definition: ezsurvey/user/datasupplier.php:7
$hasPermission
$hasPermission
Definition: ezsurvey/user/datasupplier.php:12
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.