當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Utilities::createToken方法代碼示例

本文整理匯總了PHP中Utilities::createToken方法的典型用法代碼示例。如果您正苦於以下問題:PHP Utilities::createToken方法的具體用法?PHP Utilities::createToken怎麽用?PHP Utilities::createToken使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Utilities的用法示例。


在下文中一共展示了Utilities::createToken方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: joinMaestroView

 public function joinMaestroView($attempt = 0)
 {
     $attempt = strip_tags(htmlspecialchars($attempt));
     $attempt = filter_var($attempt, FILTER_SANITIZE_NUMBER_INT);
     $attempt = filter_var($attempt, FILTER_VALIDATE_INT);
     $attempt = intval($attempt);
     $this->view = new JoinView($this->app->urlFor('admin-maestro-post'), Utilities::createToken(), $attempt);
     $this->view->display();
 }
開發者ID:CodeSomethingMX,項目名稱:barney,代碼行數:9,代碼來源:EscolaresController.class.php

示例2: loginView

 public function loginView($params)
 {
     $attempt = strip_tags(htmlspecialchars($params['attempt']));
     $attempt = filter_var($attempt, FILTER_SANITIZE_STRING);
     $attempt = filter_var($attempt, FILTER_VALIDATE_INT);
     $attempt = intval($attempt);
     $join = $this->app->urlFor('join');
     $action = $this->app->urlFor('loginPost');
     /*if ( $params['admin'] )
     			$action 	=	$this->app->urlFor('admin-login-post');
     		else
     			$action 	=	$this->app->urlFor('loginPost');*/
     $this->view = new LoginView($action, Utilities::createToken(), $join, $attempt);
     $this->view->display();
     //Utilities::printData( $params );
     //var_dump($_SESSION['proceso']);
 }
開發者ID:CodeSomethingMX,項目名稱:barney,代碼行數:17,代碼來源:GuestController.class.php

示例3: cambiarFotoView

 public function cambiarFotoView($params)
 {
     $usuario_id = strip_tags(htmlspecialchars($params['usuario']));
     $usuario_id = intval($usuario_id);
     $usuario_id = filter_var($usuario_id, FILTER_VALIDATE_INT);
     $error = 0;
     if (!$usuario_id || $usuario_id == 0) {
         $error = 1;
     }
     $usuario = Perfil::find($usuario_id);
     if (count($usuario) == 0) {
         $error = 2;
     }
     $action = '/usuario/' . $usuario_id . '/foto/';
     $session = Utilities::getSession();
     $links = Utilities::getMenu($session);
     $this->view = new FotoView($action, Utilities::createToken(), $usuario, $links, $error);
     $this->view->display();
 }
開發者ID:CodeSomethingMX,項目名稱:barney,代碼行數:19,代碼來源:AlumnoController.class.php

示例4: loginView

 public function loginView($attempt = 0)
 {
     $attempt = strip_tags(htmlspecialchars($attempt));
     $attempt = filter_var($attempt, FILTER_SANITIZE_STRING);
     $attempt = intval($attempt);
     $attempt = filter_var($attempt, FILTER_VALIDATE_INT);
     $action = $this->app->urlFor('maestro-login-post');
     $join = $this->app->urlFor('join');
     $this->view = new LoginView($action, Utilities::createToken(), $join, $attempt);
     $this->view->display();
 }
開發者ID:CodeSomethingMX,項目名稱:barney,代碼行數:11,代碼來源:MaestroController.class.php

示例5: addFileLeccion

 public function addFileLeccion($params)
 {
     $attempt = 0;
     $leccion_id = strip_tags(htmlspecialchars($params['leccion']));
     $leccion_id = intval($leccion_id);
     if (!$leccion_id) {
         $this->app->redirect($this->app->urlFor('Index'));
     }
     $action = '/curso/leccion/' . $leccion_id . '/file';
     if (array_key_exists('get', $params)) {
         $attempt = strip_tags(htmlspecialchars($params['get']));
     }
     if (isset($_SESSION['upload'])) {
         if ($_SESSION['upload'] == 1) {
             unset($_SESSION['upload']);
             $attempt = 5;
         }
     }
     $this->view = new LeccionFileView($action, Utilities::createToken(), $attempt);
     $this->view->display();
 }
開發者ID:CodeSomethingMX,項目名稱:barney,代碼行數:21,代碼來源:CursoController.class.php


注:本文中的Utilities::createToken方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。