本文整理匯總了PHP中f::setSession方法的典型用法代碼示例。如果您正苦於以下問題:PHP f::setSession方法的具體用法?PHP f::setSession怎麽用?PHP f::setSession使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類f
的用法示例。
在下文中一共展示了f::setSession方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: redirectSystem
public static final function redirectSystem()
{
f::setSession('FrontController.HTTP_REFERER', @$_SERVER['HTTP_REFERER']);
InterceptingFilter::resetSessionSystem();
InterceptingFilter::encodeMethodGet();
InterceptingFilter::refreshMethodPost();
if (InterceptingFilter::validaIP()) {
c::getViewSystem('index.php');
}
}
示例2: logoff
public function logoff()
{
f::setSession('idUsuario', null);
f::setSession('nombre', null);
v::setTrueJSON();
v::setJSON('tag', 'body');
v::setJSON('ubicacion', 'up');
v::setJSON('descripcion', c::getViewSystem('modulos/login/index.php', false));
v::printJSON();
}
示例3: imagecreatetruecolor
$height = 27;
$image = imagecreatetruecolor($width, $height);
$font = f::getPatchApp() . '/resource/plugin/reCaptcha/fonts/Courier.ttf';
$black = imagecolorallocate($image, 0, 0, 0);
// color negro
$white = imagecolorallocate($image, 255, 255, 255);
// background color blanco
//$black=$white;
imagefilledrectangle($image, 0, 0, $width, $height, $white);
$lineas = mt_rand(10, 15);
for ($i = 0; $i < $lineas; $i++) {
$max = mt_rand(80, 100);
$r = mt_rand(100, 200);
$g = mt_rand(100, 200);
$b = mt_rand(100, 200);
$linescolor = imagecolorallocatealpha($image, $r, $g, $b, $max);
$x1 = mt_rand(0, $width);
$y1 = mt_rand(0, $height);
$x2 = mt_rand(0, $width);
$y2 = mt_rand(0, $height);
imageline($image, $x1, $y1, $x2, $y2, $linescolor);
}
$aumentar = 16;
foreach (str_split($texto) as $i => $d) {
$angulo = mt_rand(-15, 15);
imagettftext($image, 20, $angulo, $aumentar * $i + 3, 22, $black, $font, $d);
}
f::setSession('captcha', $texto);
header('Content-Type: image/png');
imagepng($image);
imagedestroy($image);
示例4: resetSessionSystem
public static function resetSessionSystem()
{
f::setSession('NENTI_CODIGO', null);
f::setSession('CUSER_USERNAME', null);
f::setSession('FOLDER_HISTORY', null);
f::setSession('$NCARR_CODIGO', null);
f::setSession('$NITEM_PADRE', null);
f::setSession('$NCONC_CODIGO', null);
}
示例5: setPaginadoPagina
protected function setPaginadoPagina($value, $modulo = null)
{
f::setSession('paginado.pagina.' . $modulo, $value);
}