PageRenderTime 558ms queryTime 54ms sortTime 10ms getByIdsTime 154ms findMatchingLines 262ms

100+ results results for 'php setcookie' (558 ms)

Not the results you expected?
helper.php https://github.com/phpbb/area51-phpbb3.git | PHP | 413 lines
                    
5 *
                    
6 * @copyright (c) phpBB Limited <https://www.phpbb.com>
                    
7 * @license GNU General Public License, version 2 (GPL-2.0)
                    
110	 */
                    
111	public function __construct(config $config, language $language, language_file_helper $lang_helper, navigation_provider $nav, template $template, path_helper $path_helper, request $phpbb_request, symfony_request $request, router $router, $phpbb_root_path)
                    
112	{
                    
119		$this->path_helper = $path_helper;
                    
120		$this->phpbb_request = $phpbb_request;
                    
121		$this->request = $request;
                    
123		$this->phpbb_root_path = $phpbb_root_path;
                    
124		$this->phpbb_admin_path = $phpbb_root_path . 'adm/';
                    
125	}
                    
256		// Path to templates
                    
257		$paths = array($this->phpbb_root_path . 'install/update/new/adm/', $this->phpbb_admin_path);
                    
258		$paths = array_filter($paths, 'is_dir');
                    
                
Session.php https://github.com/holsinger/openfloor.git | PHP | 488 lines
                    
1<?php  if (!defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
274
                    
275		setcookie(
                    
276					$this->sess_cookie,
                    
356	{
                    
357		setcookie(
                    
358					$this->sess_cookie,
                    
                
albumtree_block_dtree.html.php https://github.com/wrlee/gallery3-contrib.git | PHP | 414 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.") ?>
                    
2<script type="text/javascript">
                    
188		this.selectedNode = id;
                    
189		if (this.config.useCookies) this.setCookie('cs' + this.obj, cn.id);
                    
190	}
                    
273	var yesterday = new Date(now.getTime() - 1000 * 60 * 60 * 24);
                    
274	this.setCookie('co'+this.obj, 'cookieValue', yesterday);
                    
275	this.setCookie('cs'+this.obj, 'cookieValue', yesterday);
                    
278// [Cookie] Sets value in a cookie
                    
279dTree.prototype.setCookie = function(cookieName, cookieValue, expires, path, domain, secure) {
                    
280	path = path || this.config.cookiePath;
                    
311	}
                    
312	this.setCookie('co' + this.obj, str);
                    
313};
                    
370function albumSelect_goToNode(nodeId) {
                    
371document.location = new String('main.php?g2_itemId=__ID__').replace('__ID__', nodeId);
                    
372}
                    
                
jquery.ihavecookies.js https://gitlab.com/leonardo.sandoval1/96boards-website | JavaScript | 271 lines
                    
6 * Licensed under the MIT license:
                    
7 * http://www.opensource.org/licenses/mit-license.php
                    
8 *
                    
165        });
                    
166        setCookie(
                    
167          "cookieControlPrefs",
                    
225  var dropCookie = function (value, expiryDays) {
                    
226    setCookie("cookieControl", value, expiryDays);
                    
227    $("#gdpr-cookie-message").fadeOut("fast", function () {
                    
239    */
                    
240  var setCookie = function (name, value, expiry_days) {
                    
241    var d = new Date();
                    
                
response.php https://bitbucket.org/xbdvh/hoa-tri-todolist.git | PHP | 374 lines
                    
1<?php namespace Laravel;
                    
2
                    
315
                    
316			$this->headers()->setCookie($ref->newInstanceArgs($config));
                    
317		}
                    
                
ClientTest.php https://gitlab.com/techniconline/kmc | PHP | 177 lines
                    
1<?php
                    
2
                    
20
                    
21class ClientTest extends \PHPUnit_Framework_TestCase
                    
22{
                    
64        $response = new Response();
                    
65        $response->headers->setCookie(new Cookie('foo', 'bar', \DateTime::createFromFormat('j-M-Y H:i:s T', '15-Feb-2009 20:00:00 GMT')->format('U'), '/foo', 'http://example.com', true, true));
                    
66        $domResponse = $m->invoke($client, $response);
                    
69        $response = new Response();
                    
70        $response->headers->setCookie(new Cookie('foo', 'bar', \DateTime::createFromFormat('j-M-Y H:i:s T', '15-Feb-2009 20:00:00 GMT')->format('U'), '/foo', 'http://example.com', true, true));
                    
71        $response->headers->setCookie(new Cookie('foo1', 'bar1', \DateTime::createFromFormat('j-M-Y H:i:s T', '15-Feb-2009 20:00:00 GMT')->format('U'), '/foo', 'http://example.com', true, true));
                    
                
ProductController.php https://bitbucket.org/acidel/buykoala.git | PHP | 207 lines
                    
1<?php

                    
2/**

                    
9 * It is also available through the world-wide-web at this URL:

                    
10 * http://opensource.org/licenses/osl-3.0.php

                    
11 * If you did not receive a copy of the license and are unable to

                    
23 * @copyright   Copyright (c) 2011 Magento Inc. (http://www.magentocommerce.com)

                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)

                    
25 */

                    
99        $model->setRemoteAddr(Mage::helper('core/http')->getRemoteAddr(true));

                    
100        $model->setCookie(Mage::app()->getCookie());

                    
101        $model->setWebsiteId(Mage::app()->getStore()->getWebsiteId());

                    
                
login.php https://gitlab.com/LibreTitan/Panther | PHP | 297 lines
                    
1<?php
                    
2/**
                    
13	define('PANTHER_ROOT', __DIR__.'/');
                    
14	require PANTHER_ROOT.'include/common.php';
                    
15}
                    
19
                    
20// Load the login.php language file
                    
21require PANTHER_ROOT.'lang/'.$panther_user['language'].'/login.php';
                    
100			if (!defined('FORUM_CACHE_FUNCTIONS_LOADED'))
                    
101				require PANTHER_ROOT.'include/cache.php';
                    
102
                    
113		$expire = ($save_pass == '1') ? time() + 1209600 : time() + $panther_config['o_timeout_visit'];
                    
114		panther_setcookie($cur_user['id'], $cur_user['login_key'], $expire);
                    
115
                    
118
                    
119		// Try to determine if the data in redirect_url is valid (if not, we redirect to index.php after login)
                    
120		$redirect_url = validate_redirect($_POST['redirect_url'], panther_link($panther_url['index']));
                    
                
discount2.php https://bitbucket.org/anneivycat/california-tour.git | PHP | 214 lines
                    
1<?php
                    
2   //begin add
                    
12   
                    
13   setcookie('ReservationId','',time()-3600); 
                    
14   setcookie('ReservationId_2','',time()-3600); 
                    
14   setcookie('ReservationId_2','',time()-3600); 
                    
15   setcookie('ReservationId_3','',time()-3600); 
                    
16   setcookie('ReservationId_4','',time()-3600); 
                    
17   
                    
18   setcookie('ReservationId','',time()-3600,'/','.california-tour.com'); 
                    
19   setcookie('ReservationId_2','',time()-3600,'/','.california-tour.com'); 
                    
19   setcookie('ReservationId_2','',time()-3600,'/','.california-tour.com'); 
                    
20   setcookie('ReservationId_3','',time()-3600,'/','.california-tour.com'); 
                    
21   setcookie('ReservationId_4','',time()-3600,'/','.california-tour.com'); 
                    
23   /*
                    
24   setcookie('ReservationId'); 
                    
25   setcookie('ReservationId_2');
                    
                
c3.php https://gitlab.com/itlboy/yii2-starter-installed | PHP | 234 lines
                    
1<?php
                    
2// @codingStandardsIgnoreFile
                    
28if (!class_exists('\\Codeception\\Codecept')) {
                    
29    if (stream_resolve_include_path(__DIR__ . '/vendor/autoload.php')) {
                    
30        require_once __DIR__ . '/vendor/autoload.php';
                    
31    } elseif (file_exists(__DIR__ . '/codecept.phar')) {
                    
32        require_once 'phar://'.__DIR__ . '/codecept.phar/autoload.php';
                    
33    } elseif (stream_resolve_include_path('Codeception/autoload.php')) {
                    
33    } elseif (stream_resolve_include_path('Codeception/autoload.php')) {
                    
34        require_once 'Codeception/autoload.php';
                    
35    } else {
                    
66
                    
67    function __c3_build_html_report(PHP_CodeCoverage $codeCoverage, $path)
                    
68    {
                    
68    {
                    
69        $writer = new PHP_CodeCoverage_Report_HTML();
                    
70        $writer->process($codeCoverage, $path . 'html');
                    
                
function_member.php https://github.com/bluelovers/Discuz.git | PHP | 247 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: function_login.php 12578 2010-07-09 15:41:43Z zhangguosheng $
                    
8 */
                    
90
                    
91	dsetcookie('auth', authcode("{$member['password']}\t{$member['uid']}", 'ENCODE'), $cookietime, 1, true);
                    
92	dsetcookie('loginuser');
                    
92	dsetcookie('loginuser');
                    
93	dsetcookie('activationauth');
                    
94	dsetcookie('pmnum');
                    
225	} else {
                    
226		dsetcookie('invite_auth', '');
                    
227	}
                    
                
Login.php https://github.com/bng5/CMS.git | PHP | 159 lines
                    
1<?php
                    
2
                    
26        session_unset();
                    
27        setcookie("pase", "", 0, '/');
                    
28        setcookie("sesion", "", 0, '/');
                    
36        //$this->cerrar_sesion();
                    
37        //header("Location: ".substr($_SERVER['PHP_SELF'], 0, -4));
                    
38        //exit;
                    
82                $expira = $_POST['recordarme'] ? time() + 2592000 : 0; //60*60*24*30
                    
83                setcookie("usuario", $fila['usuario'], $expira, "/"); //, ".".DOMINIO);
                    
84                setcookie("pase", $pase, $expira, "/", false, false, true); //, ".".DOMINIO);
                    
124                $mysqli->query("UPDATE usuarios SET `pase` = '{$pase}' WHERE id = {$fila['id']}");
                    
125                setcookie("pase", $pase, time() + 2592000, "/", false, false, true); //, ".".DOMINIO);
                    
126                do {
                    
                
controller.php https://bitbucket.org/selfeky/xclusivescardwebsite.git | PHP | 313 lines
                    
1<?php 
                    
2/**
                    
132				$db->query($q, $v);
                    
133				setcookie("ccmPoll" . $this->bID.'-'.$this->cID, "voted", time() + 1296000, DIR_REL . '/');
                    
134				$this->redirect($c->getCollectionPath() . '?survey_voted=1');
                    
                
SetCookie.php https://github.com/obias/zf2.git | PHP | 399 lines
                    
69        /* @var $setCookieProcessor Closure */
                    
70        static $setCookieProcessor = null;
                    
71
                    
71
                    
72        if ($setCookieProcessor === null) {
                    
73            $setCookieClass = get_called_class();
                    
73            $setCookieClass = get_called_class();
                    
74            $setCookieProcessor = function($headerLine) use ($setCookieClass) {
                    
75                $header = new $setCookieClass;
                    
110        if (count($multipleHeaders) <= 1) {
                    
111            return $setCookieProcessor(array_pop($multipleHeaders));
                    
112        } else {
                    
389                throw new Exception\RuntimeException(
                    
390                    'The SetCookie multiple header implementation can only accept an array of SetCookie headers'
                    
391                );
                    
                
base.php https://gitlab.com/endomorphosis/falkenstein | PHP | 293 lines
                    
1<?php
                    
2
                    
273			$comment_cookie_lifetime = apply_filters( 'comment_cookie_lifetime', 30000000 );
                    
274			setcookie( 'comment_author_'       . COOKIEHASH, $comment->comment_author, time() + $comment_cookie_lifetime,              COOKIEPATH, COOKIE_DOMAIN );
                    
275			setcookie( 'comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime,        COOKIEPATH, COOKIE_DOMAIN );
                    
275			setcookie( 'comment_author_email_' . COOKIEHASH, $comment->comment_author_email, time() + $comment_cookie_lifetime,        COOKIEPATH, COOKIE_DOMAIN );
                    
276			setcookie( 'comment_author_url_'   . COOKIEHASH, esc_url($comment->comment_author_url), time() + $comment_cookie_lifetime, COOKIEPATH, COOKIE_DOMAIN );
                    
277		}
                    
                
StaticTest.php https://github.com/bhaumik25/zend-framework.git | PHP | 346 lines
                    
1<?php
                    
2
                    
3require_once 'Zend/Http/Client.php';
                    
4require_once 'PHPUnit/Framework/TestCase.php';
                    
5
                    
18 */
                    
19class Zend_Http_Client_StaticTest extends PHPUnit_Framework_TestCase 
                    
20{
                    
207	{
                    
208		$this->client->setCookieJar();
                    
209		$this->client->setCookie('cookie', 'value');
                    
209		$this->client->setCookie('cookie', 'value');
                    
210		$this->client->setCookie('chocolate', 'chips');
                    
211		$jar = $this->client->getCookieJar();
                    
227		
                    
228		$this->client->setCookieJar($jar);
                    
229		
                    
                
em-notices.php https://gitlab.com/pankajmohale/chef2go | PHP | 251 lines
                    
1<?php
                    
2    /**
                    
24		        		$this->notices = $notices;
                    
25		        		setcookie('em_notices', '', time() - 3600, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), true); //unset the cookie
                    
26	        	    }
                    
45	            if(count($this->notices['errors']) > 0 || count($this->notices['alerts']) > 0 || count($this->notices['infos']) > 0 || count($this->notices['confirms']) > 0){
                    
46	            	setcookie('em_notices', base64_encode(json_encode($this->notices)), time() + 30, COOKIEPATH, COOKIE_DOMAIN, is_ssl(), true); //sets cookie for 30 seconds, which may be too much
                    
47	            }
                    
                
webkitdlib.php https://github.com/picklingjar/Webkitd.git | PHP | 458 lines
                    
1<?php
                    
2/*
                    
23define('CMDSETPOSTVAL', 4); //test
                    
24define('CMDSETCOOKIES', 5); //done
                    
25define('CMDDELCOOKIE', 6); //DEPRECATED
                    
119//5
                    
120function webkitd_setcookies($fd, $cookie){
                    
121	fwrite($fd, CMDSETCOOKIES." ".$cookie."\n");
                    
                
Auth.php https://github.com/4260/OpenPNE2.git | PHP | 331 lines
                    
1<?php
                    
2/**
                    
3 * @copyright 2005-2008 OpenPNE Project
                    
4 * @license   http://www.php.net/license/3_01.txt PHP License 3.01
                    
5 */
                    
9 */
                    
10require_once 'Auth.php';
                    
11
                    
156                }
                    
157                setcookie(session_name(), session_id(), $expire, $this->cookie_path);
                    
158            }
                    
199            if (!$this->is_ktai) {
                    
200                setcookie(session_name(), '', time() - 3600, $this->cookie_path);
                    
201            }
                    
265            case 1:
                    
266                include_once 'OpenPNE/DBSession.php';
                    
267                $sess_storage = new OpenPNE_DBSession(db_get_dsn('session'));
                    
                
schema.php https://github.com/yabba/openx.git | PHP | 252 lines
                    
1<?php
                    
2/*
                    
32
                    
33require_once './init.php';
                    
34
                    
39{
                    
40    header('Location: archive.php');
                    
41    exit;
                    
43
                    
44require_once 'lib/schema.inc.php';
                    
45if (array_key_exists('clear_cookies', $_POST))
                    
46{
                    
47    setcookie('schemaPath', '');
                    
48    setcookie('schemaFile', '');
                    
79
                    
80setcookie('schemaPath', $schemaPath);
                    
81setcookie('schemaFile', $schemaFile);
                    
                
add_comment.php https://github.com/lasseron/Saurus-CMS-Community-Edition.git | PHP | 404 lines
                    
1<?php
                    
2/**
                    
3 * This source file is is part of Saurus CMS content management software.
                    
4 * It is licensed under MPL 1.1 (http://www.opensource.org/licenses/mozilla1.1.php).
                    
5 * Copyright (C) 2000-2010 Saurused Ltd (http://www.saurus.info/).
                    
15 * @copyright	2000-2010 Saurused Ltd (http://www.saurus.info/)
                    
16 * @license		Mozilla Public License 1.1 (http://www.opensource.org/licenses/mozilla1.1.php)
                    
17 * 
                    
70$class_path = $matches[1] == "editor" ? "../classes/" : "./classes/";
                    
71include($class_path."port.inc.php");
                    
72include($class_path."mail.class.php"); # for f-n encodeHeader()
                    
80	//no session started, prolly a bot, exit
                    
81	header('Location: index.php');
                    
82	exit;
                    
86{
                    
87	header('Location: index.php');
                    
88	exit;
                    
                
phpbb.php https://github.com/matthewxu/doc.git | PHP | 232 lines
                    
12 * $Author: liuhui $
                    
13 * $Id: phpbb.php 17063 2010-03-25 06:35:46Z liuhui $
                    
14 */
                    
26    /* 会员数据整合插件的代码必须和文件名保持一致 */
                    
27    $modules[$i]['code']    = 'phpbb';
                    
28
                    
29    /* 被整合的第三方程序的名称 */
                    
30    $modules[$i]['name']    = 'phpBB';
                    
31
                    
43    $modules[$i]['default']['db_user'] = 'root';
                    
44    $modules[$i]['default']['prefix'] = 'phpbb_';
                    
45    //$modules[$i]['default']['cookie_prefix'] = 'xn_';
                    
50require_once(ROOT_PATH . 'includes/modules/integrates/integrate.php');
                    
51class phpbb extends integrate
                    
52{
                    
                
Secret.php https://github.com/Excito/horde3.git | PHP | 196 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * $Horde: framework/Secret/Secret.php,v 1.45.10.14 2009/01/06 15:23:34 jan Exp $
                    
10 *
                    
70
                    
71        require_once 'Horde/Util.php';
                    
72        if (Util::extensionExists('mcrypt')) {
                    
95        if (!isset($cache[$cacheIdx])) {
                    
96            require_once 'Horde/Cipher.php';
                    
97
                    
124                $_COOKIE[$keyname . '_key'] = $key;
                    
125                Secret::_setCookie($keyname, $key);
                    
126            }
                    
128            $key = session_id();
                    
129            Secret::_setCookie($keyname, $key);
                    
130        }
                    
                
Account.php https://github.com/basher22/Travianx.git | PHP | 226 lines
                    
4## --------------------------------------------------------------------------- ##
                    
5##  Filename       Account.php                                                 ##
                    
6##  Developed by:  Dzoki                                                       ##
                    
36		else {
                    
37			if($session->logged_in && in_array("logout.php",explode("/",$_SERVER['PHP_SELF']))) {
                    
38				$this->Logout();
                    
97			
                    
98			header("Location: anmelden.php");
                    
99		}
                    
113				if($uid) {
                    
114					setcookie("COOKUSR",$_POST['name'],time()+COOKIE_EXPIRE,COOKIE_PATH);
                    
115					setcookie("COOKEMAIL",$_POST['email'],time()+COOKIE_EXPIRE,COOKIE_PATH);
                    
118					$this->generateBase($_POST['kid'],$uid,$_POST['name']);
                    
119					header("Location: login.php");
                    
120				}
                    
                
cookies_test.php https://github.com/cgajardo/repositorium.git | PHP | 227 lines
                    
1<?php
                    
2// $Id: cookies_test.php 1506 2007-05-07 00:58:03Z lastcraft $
                    
2// $Id: cookies_test.php 1506 2007-05-07 00:58:03Z lastcraft $
                    
3require_once(dirname(__FILE__) . '/../autorun.php');
                    
4require_once(dirname(__FILE__) . '/../cookies.php');
                    
108        $jar = new SimpleCookieJar();
                    
109        $jar->setCookie("a", "A");
                    
110        $this->assertEqual($jar->selectAsPairs(new SimpleUrl('/')), array('a=A'));
                    
114        $jar = new SimpleCookieJar();
                    
115        $jar->setCookie('a', 'A', 'my-host.com');
                    
116        $jar->setCookie('b', 'B', 'another-host.com');
                    
116        $jar->setCookie('b', 'B', 'another-host.com');
                    
117        $jar->setCookie('c', 'C');
                    
118        $this->assertEqual(
                    
136        $jar = new SimpleCookieJar();
                    
137        $jar->setCookie('a', 'A', false, '/path/');
                    
138        $this->assertEqual($jar->selectAsPairs(new SimpleUrl('/')), array());
                    
                
User.php https://github.com/redokes/Framework.git | PHP | 418 lines
                    
1<?php
                    
2class User_Model_User extends Redokes_Model_Model {
                    
16			$tripleSalt = $this->salt($this->salt($this->row->password));
                    
17			setcookie(md5('rememberEmail'), $this->row->email, time() + 60 * 60 * 24 * 7, '/');
                    
18			setcookie(md5('rememberPassword'), $tripleSalt, time() + 60 * 60 * 24 * 7, '/');
                    
74		$_SESSION['user'] = array();
                    
75		setcookie(md5('rememberEmail'), false, time() - 60, '/');
                    
76		setcookie(md5('rememberPassword'), false, time() - 60, '/');
                    
                
prepend.inc.php http://scalr.googlecode.com/svn/ | PHP | 308 lines
                    
84	require_once(SRCPATH."/class.Debug.php");
                    
85	require_once(SRCPATH."/class.TaskQueue.php");
                    
86	require_once(SRCPATH."/class.FarmTerminationOptions.php");
                    
115	Core::Load("UI/Smarty/Smarty.class.php", LIBPATH);
                    
116	Core::Load("UI/Smarty/Smarty_Compiler.class.php", LIBPATH);		
                    
117	Core::Load("NET/Mail/PHPMailer");
                    
117	Core::Load("NET/Mail/PHPMailer");
                    
118	Core::Load("NET/Mail/PHPSmartyMailer");
                    
119	Core::Load("Data/Formater/Formater");
                    
188	// Define log4php contants
                    
189	define("LOG4PHP_DIR", LIBPATH.'/IO/Logging/log4php/src/main/php');
                    
190	define("LOG4PHP_CONFIGURATION", APPPATH.'/etc/log4php.xml');
                    
203
                    
204	require_once(LOG4PHP_DIR . '/LoggerManager.php');
                    
205		
                    
                
facebook.php https://github.com/jkinner/ringside.git | PHP | 246 lines
                    
1<?php
                    
2//
                    
3// +---------------------------------------------------------------------------+
                    
4// | Facebook Platform PHP5 client                                 |
                    
5// +---------------------------------------------------------------------------+
                    
33
                    
34include_once 'facebookapi_php5_restlib.php';
                    
35
                    
167  public function get_add_url($next=null) {
                    
168    return self::get_facebook_url().'/add.php?api_key='.$this->api_key .
                    
169      ($next ? '&next=' . urlencode($next) : '');
                    
172  public function get_login_url($next, $canvas) {
                    
173    return self::get_facebook_url().'/login.php?v=1.0&api_key=' . $this->api_key .
                    
174      ($next ? '&next=' . urlencode($next)  : '') .
                    
199      foreach ($cookies as $name => $val) {
                    
200        setcookie($this->api_key . '_' . $name, $val, (int)$expires);
                    
201        $_COOKIE[$this->api_key . '_' . $name] = $val;
                    
                
AlfrescoWebService.php https://bitbucket.org/kudutest/moodlegit.git | PHP | 111 lines
                    
1<?php
                    
2
                    
54         {
                    
55         	$this->__setCookie("JSESSIONID", $sessionId);
                    
56         }
                    
                
http.php https://github.com/jacomyma/GEXF-Atlas.git | PHP | 199 lines
                    
1<?php
                    
2/**
                    
84    /**
                    
85     * Takes a $cookie and uses PHP's setcookie() function to add cookies to the output stream.
                    
86     *
                    
105        $args[] = $cookie->httpOnly;
                    
106        call_user_func_array( 'setcookie', $args );
                    
107    }
                    
                
conversation_start.php git://github.com/Program-O/Program-O.git | PHP | 268 lines
                    
1<?php
                    
2
                    
23require_once(_LIB_PATH_ . 'PDO_functions.php');
                    
24/** @noinspection PhpIncludeInspection */
                    
25include_once(_LIB_PATH_ . "error_functions.php");
                    
25include_once(_LIB_PATH_ . "error_functions.php");
                    
26/** @noinspection PhpIncludeInspection */
                    
27include_once(_LIB_PATH_ . 'misc_functions.php');
                    
42$pgoVersion = VERSION;
                    
43$phpVersion = phpversion();
                    
44$serverSoftware = $_SERVER['SERVER_SOFTWARE'];
                    
48  Server Software:              $serverSoftware
                    
49  PHP Version:                  $phpVersion
                    
50  OS:                           $os
                    
60//load all the user functions
                    
61/** @noinspection PhpIncludeInspection */
                    
62include_once(_BOTCORE_PATH_ . "conversation" . $path_separator . "load_convofunctions.php");
                    
                
auth_tkt.py https://bitbucket.org/eaviles/gobierno.git | Python | 380 lines
                    
1# (c) 2005 Ian Bicking and contributors; written for Paste (http://pythonpaste.org)
                    
2# Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
                    
3##########################################################################
                    
76            self.request().environ()['REMOTE_ADDR'], tokens=['admin'])
                    
77        self.response().setCookie('auth_tkt', token.cookie_value())
                    
78
                    
                
Secret.php https://github.com/wrobel/horde-fw3.git | PHP | 196 lines
                    
1<?php
                    
2/**
                    
8 *
                    
9 * $Horde: framework/Secret/Secret.php,v 1.45.10.14 2009-01-06 15:23:34 jan Exp $
                    
10 *
                    
70
                    
71        require_once 'Horde/Util.php';
                    
72        if (Util::extensionExists('mcrypt')) {
                    
95        if (!isset($cache[$cacheIdx])) {
                    
96            require_once 'Horde/Cipher.php';
                    
97
                    
124                $_COOKIE[$keyname . '_key'] = $key;
                    
125                Secret::_setCookie($keyname, $key);
                    
126            }
                    
128            $key = session_id();
                    
129            Secret::_setCookie($keyname, $key);
                    
130        }
                    
                
SetCookie.php https://gitlab.com/x33n/respond | PHP | 373 lines
                    
1<?php
                    
2namespace GuzzleHttp\Cookie;
                    
8 */
                    
9class SetCookie implements ToArrayInterface
                    
10{
                    
27    /**
                    
28     * Create a new SetCookie object from a string
                    
29     *
                    
                
Cookie.php https://github.com/edmondscommerce/XAMPP-Magento-Demo-Site.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2008 Irubin Consulting Inc. DBA Varien (http://www.varien.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
227
                    
228        setcookie($name, $value, $expire, $path, $domain, $secure, $httponly);
                    
229
                    
275
                    
276        setcookie($name, null, null, $path, $domain, $secure, $httponly);
                    
277        return $this;
                    
                
paypal-return-in-web-accept-sp.inc.php https://gitlab.com/Gashler/sg | PHP | 148 lines
                    
1<?php
                    
2/**
                    
71
                    
72						setcookie('s2member_sp_tracking', ($s2member_sp_tracking = c_ws_plugin__s2member_utils_encryption::encrypt($paypal['txn_id'])), time() + 31556926, COOKIEPATH, COOKIE_DOMAIN).setcookie('s2member_sp_tracking', $s2member_sp_tracking, time() + 31556926, SITECOOKIEPATH, COOKIE_DOMAIN).($_COOKIE['s2member_sp_tracking'] = $s2member_sp_tracking);
                    
73
                    
                
BasketController.php https://gitlab.com/NickZP/virtuozz.pp.ua | PHP | 134 lines
                    
1<?php
                    
2
                    
105        
                    
106        SetCookie("basket","");
                    
107        
                    
                
cookie.php https://github.com/cgajardo/repositorium.git | PHP | 474 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * PHP versions 4 and 5
                    
6 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://cakephp.org CakePHP(tm) Project
                    
15 * @package       cake
                    
16 * @subpackage    cake.cake.libs.controller.components
                    
17 * @since         CakePHP(tm) v 1.2.0.4213
                    
18 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
                    
32 * @subpackage    cake.cake.libs.controller.components
                    
33 * @link http://book.cakephp.org/view/1280/Cookies
                    
34 *
                    
                
cookies_test.php https://github.com/kennethjiang/Wolke.git | PHP | 227 lines
                    
1<?php
                    
2// $Id: cookies_test.php,v 1.5 2007/05/07 00:58:03 lastcraft Exp $
                    
2// $Id: cookies_test.php,v 1.5 2007/05/07 00:58:03 lastcraft Exp $
                    
3require_once(dirname(__FILE__) . '/../autorun.php');
                    
4require_once(dirname(__FILE__) . '/../cookies.php');
                    
108        $jar = new SimpleCookieJar();
                    
109        $jar->setCookie("a", "A");
                    
110        $this->assertEqual($jar->selectAsPairs(new SimpleUrl('/')), array('a=A'));
                    
114        $jar = new SimpleCookieJar();
                    
115        $jar->setCookie('a', 'A', 'my-host.com');
                    
116        $jar->setCookie('b', 'B', 'another-host.com');
                    
116        $jar->setCookie('b', 'B', 'another-host.com');
                    
117        $jar->setCookie('c', 'C');
                    
118        $this->assertEqual(
                    
136        $jar = new SimpleCookieJar();
                    
137        $jar->setCookie('a', 'A', false, '/path/');
                    
138        $this->assertEqual($jar->selectAsPairs(new SimpleUrl('/')), array());
                    
                
db_operations.php https://gitlab.com/luyxtran264/myproject | PHP | 315 lines
                    
1<?php
                    
2/* vim: set expandtab sw=4 ts=4 sts=4: */
                    
11 *
                    
12 * @package PhpMyAdmin
                    
13 */
                    
18 */
                    
19require_once 'libraries/common.inc.php';
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
20require_once 'libraries/mysql_charsets.inc.php';
                    
21require_once 'libraries/display_create_table.lib.php';
                    
22
                    
25 */
                    
26require_once 'libraries/check_user_privileges.lib.php';
                    
27require_once 'libraries/operations.lib.php';
                    
71
                    
72        include_once "libraries/plugin_interface.lib.php";
                    
73        // remove all foreign key constraints, otherwise we can get errors
                    
                
actions.class.php https://github.com/barncow/tf2logs.git | PHP | 162 lines
                    
1<?php
                    
2
                    
8 * @author     Your name here
                    
9 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
                    
10 */
                    
10 */
                    
11class playerActions extends BasesfPHPOpenIDAuthActions {
                    
12
                    
107    $this->error = $this->getRequest()->getErrors();
                    
108    $this->getResponse()->setCookie('known_openid_identity', '');
                    
109  }
                    
125    $this->getUser()->setAuthenticated(false);
                    
126    $this->getResponse()->setCookie('known_openid_identity', '');
                    
127    $this->getUser()->setAttribute(sfConfig::get('app_playerid_session_var'), '');
                    
154    $this->getUser()->setAuthenticated(true);
                    
155    sfContext::getInstance()->getResponse()->setCookie('known_openid_identity',$openid_validation_result['identity']);
                    
156    
                    
                
index.php https://github.com/GE3/GE3.git | PHP | 280 lines
                    
10/* -- Include funkcí -- */
                    
11Include '../funkce.php/debug.fce.php';
                    
12Include '../funkce.php/db.fce.php';
                    
14/* -- Include configu -- */
                    
15Include "../config.php/default.conf.php";
                    
16$CONF = &$GLOBALS["config"];
                    
29/* -- Definice tříd -- */
                    
30Include '../class.php/GlassTemplate.class.php';
                    
31
                    
201    if($_GET["m"]=="objednavky"){
                    
202       include 'objednavky.php';
                    
203       }
                    
205    if($_GET["m"]=="zakaznici"){
                    
206       include 'zakaznici.php';
                    
207       }
                    
                
user_agent.php https://bitbucket.org/allfields/wave.git | PHP | 332 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage WebTester
                    
6 *  @version    $Id: user_agent.php 1723 2008-04-08 00:34:10Z lastcraft $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/cookies.php');
                    
13require_once(dirname(__FILE__) . '/http.php');
                    
13require_once(dirname(__FILE__) . '/http.php');
                    
14require_once(dirname(__FILE__) . '/encoding.php');
                    
15require_once(dirname(__FILE__) . '/authentication.php');
                    
93     */
                    
94    function setCookie($name, $value, $host = false, $path = '/', $expiry = false) {
                    
95        $this->_cookie_jar->setCookie($name, $value, $host, $path, $expiry);
                    
                
cls_session.php https://bitbucket.org/huanteng/touyou.git | PHP | 290 lines
                    
1<?php
                    
2
                    
12 * $Author: liubo $
                    
13 * $Id: cls_session.php 17217 2011-01-19 06:29:08Z liubo $
                    
14*/
                    
115
                    
116            setcookie($this->session_name, $this->session_id . $this->gen_session_key($this->session_id), 0, $this->session_cookie_path, $this->session_cookie_domain, $this->session_cookie_secure);
                    
117        }
                    
264
                    
265        setcookie($this->session_name, $this->session_id, 1, $this->session_cookie_path, $this->session_cookie_domain, $this->session_cookie_secure);
                    
266
                    
                
index.tpl https://github.com/andalit/torrents.git | Smarty Template | 230 lines
                    
70			<td class="row1 f_icon">
                    
71			<a href="search.php?f={c.f.FORUM_ID}&amp;new=1&amp;dm=1&amp;s=0&amp;o=1"><img class="forum_icon" src="{c.f.FORUM_FOLDER_IMG}" alt="{c.f.FORUM_FOLDER_ALT}" /></a>
                    
72			</td>
                    
84					<!-- BEGIN sf -->
                    
85					<span class="sf_title{c.f.sf.SF_NEW}"><a href="search.php?f={c.f.sf.SF_ID}&amp;new=1&amp;dm=1&amp;s=0&amp;o=1"><span class="dot-sf">&#8226;</span></a><a href="{FORUM_URL}{c.f.sf.SF_ID}">{c.f.sf.SF_NAME}</a></span><span class="sf_separator"></span>
                    
86					<!-- END sf -->
                    
153<div id="mark_all_forums_read">
                    
154	<a href="{U_INDEX}" class="med" onclick="setCookie('{COOKIE_MARK}', 'all_forums');">{L_MARK_ALL_FORUMS_READ}</a>
                    
155</div>
                    
                
PHPWebdriverTest.php http://php-webdriver-bindings.googlecode.com/svn/trunk/ | PHP | 282 lines
                    
1<?php
                    
2
                    
2
                    
3if(is_file('../definedVars.php')) require_once '../definedVars.php';
                    
4require_once 'phpwebdriver/WebDriver.php';
                    
11 */
                    
12class PHPWebDriverTest extends PHPUnit_Framework_TestCase {
                    
13
                    
136        $this->webdriver->get(TEST_URL);
                    
137    $this->webdriver->setCookie('aaa','testvalue'); 
                    
138        $cookies = $this->webdriver->getAllCookies();
                    
                
pluggable-deprecated.php https://gitlab.com/darmawan.fatria/df-skp-2014 | PHP | 192 lines
                    
1<?php
                    
2/**
                    
10 * @subpackage Deprecated
                    
11 * @see pluggable.php
                    
12 */
                    
72
                    
73if ( !function_exists('wp_setcookie') ) :
                    
74/**
                    
88 */
                    
89function wp_setcookie($username, $password = '', $already_md5 = false, $home = '', $siteurl = '', $remember = false) {
                    
90	_deprecated_function( __FUNCTION__, '2.5', 'wp_set_auth_cookie()' );
                    
94else :
                    
95	_deprecated_function( 'wp_setcookie', '2.5', 'wp_set_auth_cookie()' );
                    
96endif;
                    
174 *
                    
175 * Originally stored in wp-app.php, and later wp-includes/class-wp-atom-server.php.
                    
176 * It is kept here in case a plugin directly referred to the class.
                    
                
CookieTest.php https://github.com/brtriver/sukonv.git | PHP | 221 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Lithium: the most rad php framework
                    
4 *
                    
5 * @copyright     Copyright 2010, Union of Rad, Inc. (http://union-of-rad.org)
                    
6 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
                    
7 */
                    
21	public function skip() {
                    
22		$sapi = PHP_SAPI;
                    
23		$message = 'Cookie tests cannot be run via command-line interface.';
                    
41		$settings = session_get_cookie_params();
                    
42		setcookie(
                    
43			$name, '', time() - 1000, $settings['path'], $settings['domain'],
                    
                
user_agent.php https://github.com/syfisher/limb.git | PHP | 332 lines
                    
1<?php
                    
2/**
                    
5 *  @subpackage WebTester
                    
6 *  @version    $Id: user_agent.php 7198 2008-11-01 11:57:17Z korchasa $
                    
7 */
                    
11 */
                    
12require_once(dirname(__FILE__) . '/cookies.php');
                    
13require_once(dirname(__FILE__) . '/http.php');
                    
13require_once(dirname(__FILE__) . '/http.php');
                    
14require_once(dirname(__FILE__) . '/encoding.php');
                    
15require_once(dirname(__FILE__) . '/authentication.php');
                    
93     */
                    
94    function setCookie($name, $value, $host = false, $path = '/', $expiry = false) {
                    
95        $this->_cookie_jar->setCookie($name, $value, $host, $path, $expiry);
                    
                
ResponseHeaderBag.php https://gitlab.com/fbi/web | PHP | 234 lines
                    
1<?php
                    
2
                    
126     */
                    
127    public function setCookie(Cookie $cookie)
                    
128    {
                    
199    {
                    
200        $this->setCookie(new Cookie($name, null, 1, $path, $domain));
                    
201    }
                    
                
Native.php https://github.com/ggramlich/core.git | PHP | 221 lines
                    
1<?php
                    
2/**
                    
3 * 
                    
4 * Session manager for native PHP sessions
                    
5 * 
                    
11 * 
                    
12 * @license http://opensource.org/licenses/bsd-license.php BSD
                    
13 * 
                    
13 * 
                    
14 * @version $Id: Native.php 3366 2008-08-26 01:36:49Z pmjones $
                    
15 * 
                    
24     * @config dependency handler A Solar_Session_Handler dependency injection. Default
                    
25     *   is the string 'php', which means to use the native PHP session save.
                    
26     *   handler instead of a dependency injection.
                    
127     * 
                    
128     * @see [[php::session_regenerate_id()]]
                    
129     * 
                    
                
Cookie.php https://github.com/quarkness/piwik.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
117	/**
                    
118	 * setcookie() replacement -- we don't use the built-in function because
                    
119	 * it is buggy for some PHP versions.
                    
120	 *
                    
121	 * @link http://php.net/setcookie
                    
122	 *
                    
130	 */
                    
131	protected function setCookie($Name, $Value, $Expires, $Path = '', $Domain = '', $Secure = false, $HTTPOnly = false)
                    
132	{
                    
170		$this->setP3PHeader();
                    
171		$this->setCookie($this->name, 'deleted', time() - 31536001, $this->path, $this->domain);
                    
172	}
                    
192		$this->setP3PHeader();
                    
193		$this->setCookie($this->name, $cookieString, $this->expire, $this->path, $this->domain, $this->secure, $this->httponly);
                    
194	}
                    
                
HttpTestCase.php https://github.com/Martin1982/IBMessagingWorkshopServer.git | PHP | 276 lines
                    
1<?php
                    
2/**
                    
18 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
19 * @version    $Id: HttpTestCase.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
20 */
                    
24 */
                    
25// require_once 'Zend/Controller/Request/Http.php';
                    
26
                    
130     */
                    
131    public function setCookie($key, $value)
                    
132    {
                    
142     */
                    
143    public function setCookies(array $cookies)
                    
144    {
                    
171        if (!in_array($type, $this->_validMethodTypes)) {
                    
172            // require_once 'Zend/Controller/Exception.php';
                    
173            throw new Zend_Controller_Exception('Invalid request method specified');
                    
                
Socket.php https://bitbucket.org/jokusafet/magento2.git | PHP | 537 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright   Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com)
                    
24 * @license     http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
221	 */
                    
222	public function setCookies($cookies)
                    
223	{
                    
231	{
                    
232		$this->setCookies(array());
                    
233	}
                    
249	 * 
                    
250	 * @param string $uri ex. http://google.com/index.php?a=b
                    
251	 * @return string ex. /index.php?a=b
                    
                
SetCookieTest.php https://github.com/bate/zf2.git | PHP | 329 lines
                    
14
                    
15class SetCookieTest extends \PHPUnit_Framework_TestCase
                    
16{
                    
21    {
                    
22        $setCookieHeader = new SetCookie(
                    
23            'myname', 'myvalue', 'Wed, 13-Jan-2021 22:23:01 GMT',
                    
41        $this->assertInstanceOf('Zend\Http\Header\HeaderInterface', $setCookieHeader);
                    
42        $this->assertInstanceOf('Zend\Http\Header\SetCookie', $setCookieHeader);
                    
43    }
                    
163        $cookie = 'Set-Cookie: leo_auth_token="example"; Version=1; Max-Age=1799; Expires=Mon, 20-Feb-2012 02:49:57 GMT; Path=/';
                    
164        $setCookieHeader = SetCookie::fromString($cookie);
                    
165        $this->assertEquals($cookie, $setCookieHeader->toString());
                    
173        $cookie = 'Set-Cookie: Version=1; Max-Age=1799; Expires=Mon, 20-Feb-2012 02:49:57 GMT; Path=/; leo_auth_token="example"';
                    
174        $setCookieHeader = SetCookie::fromString($cookie);
                    
175        $this->assertNotEquals('leo_auth_token', $setCookieHeader->getName());
                    
                
HproseHttpClient.php https://gitlab.com/fangfangchen/xianpipa | PHP | 314 lines
                    
1<?php
                    
2/**********************************************************\
                    
13 *                                                        *
                    
14 * HproseHttpClient.php                                   *
                    
15 *                                                        *
                    
15 *                                                        *
                    
16 * hprose http client library for php5.                   *
                    
17 *                                                        *
                    
22
                    
23require_once('HproseCommon.php');
                    
24require_once('HproseIO.php');
                    
24require_once('HproseIO.php');
                    
25require_once('HproseClient.php');
                    
26
                    
45    }
                    
46    protected function setCookie($headers) {
                    
47        foreach ($headers as $header) {
                    
                
space_index.php https://gitlab.com/phamngsinh/baitaplon_sinhvien | PHP | 153 lines
                    
1<?php
                    
2
                    
6 *
                    
7 *      $Id: space_index.php 25870 2011-11-24 07:05:44Z zhengqingpeng $
                    
8 */
                    
14if(($_G['adminid'] == 1 && $_G['setting']['allowquickviewprofile'] && $_GET['view'] != 'admin' && $_GET['diy'] != 'yes') || defined('IN_MOBILE')) {
                    
15	dheader("Location:home.php?mod=space&uid=$space[uid]&do=profile");
                    
16}
                    
68		$viewuids[$space['uid']] = $space['uid'];
                    
69		dsetcookie('viewid', 'uid_'.$space['uid']);
                    
70	}
                    
106
                    
107	dsetcookie('home_diymode', 1);
                    
108}
                    
                
sfCacheSessionStorage.class.php https://github.com/openpne/OpenPNE3.git | PHP | 290 lines
                    
1<?php
                    
2
                    
112       // only send cookie when id is issued
                    
113       $this->response->setCookie($this->options['session_name'],
                    
114                                  $this->id.':'.sha1($this->id.':'.$this->options['session_cookie_secret']),
                    
247    // update session id in signed cookie
                    
248    $this->response->setCookie($this->options['session_name'],
                    
249                               $this->id.':'.sha1($this->id.':'.$this->options['session_cookie_secret']),
                    
                
index2.php https://github.com/bacci/bussola.git | PHP | 341 lines
                    
1<?php
                    
2session_name('aaLogin');
                    
9
                    
10include_once('classes/usuarios.class.php');
                    
11
                    
27
                    
28	header("Location: acesso.php");
                    
29	exit;
                    
62
                    
63			setcookie('aaLembrar',$_POST['lembrarMe']);
                    
64		}
                    
74
                    
75	header("Location: acesso.php");
                    
76	exit;
                    
174				<!-- Login Form -->
                    
175				<form action="logmein.php" class="clearfix" method="post">
                    
176					<h2><font face="Arial, Helvetica, sans-serif">Acesso para Clientes</font></h2>
                    
                
class.cookie.php https://github.com/nils-werner/symphony-2.git | PHP | 182 lines
                    
1<?php
                    
2
                    
11	 * to determine similar things. The Cookie class is tightly integrated with
                    
12	 * PHP's `$_SESSION` global and it's related functions.
                    
13	 */
                    
13	 */
                    
14	require_once(CORE . '/class.session.php');
                    
15
                    
83		 * Constructor for the Cookie class intialises all class variables with the
                    
84		 * given parameters. Most of the parameters map to PHP's setcookie
                    
85		 * function. It creates a new Session object via the `$this->__init()`
                    
87		 * @see __init()
                    
88		 * @link http://php.net/manual/en/function.setcookie.php
                    
89		 * @param string $index
                    
168		 *
                    
169		 * @link http://au2.php.net/manual/en/function.session-destroy.php
                    
170		 */
                    
                
user.php http://speedcms.googlecode.com/svn/trunk/ | PHP | 170 lines
                    
1<?php
                    
2if (!defined('SPEEDCMS')) { exit(1);}
                    
2if (!defined('SPEEDCMS')) { exit(1);}
                    
3import ($GLOBALS['spConfig']['controller_path'].'/general.php');
                    
4
                    
113	public function logout(){
                    
114		// ???PHP.net????SESSION???
                    
115		$_SESSION = array();
                    
115		$_SESSION = array();
                    
116		if (isset($_COOKIE[session_name()])) {setcookie(session_name(), '', time()-42000, '/');}
                    
117		session_destroy();
                    
124	public function login(){
                    
125		import("spAcl.php"); // ??Acl?????????????????
                    
126		$userObj = spClass("userModel"); // ???userModel?
                    
                
ResponseHeaderBag.php https://gitlab.com/jjpa2018/dashboard | PHP | 291 lines
                    
1<?php
                    
2
                    
119            foreach ((array) $values as $cookie) {
                    
120                $this->setCookie(Cookie::fromString($cookie));
                    
121            }
                    
179
                    
180    public function setCookie(Cookie $cookie)
                    
181    {
                    
243    {
                    
244        $this->setCookie(new Cookie($name, null, 1, $path, $domain, $secure, $httpOnly, false, $sameSite));
                    
245    }
                    
                
Cookie.php https://github.com/ibnoe/Microweber.git | PHP | 396 lines
                    
1<?php
                    
2/**
                    
6 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
                    
7 * @version $Id: Cookie.php 4302 2011-04-04 00:24:06Z vipsoft $
                    
8 *
                    
117	/**
                    
118	 * setcookie() replacement -- we don't use the built-in function because
                    
119	 * it is buggy for some PHP versions.
                    
120	 *
                    
121	 * @link http://php.net/setcookie
                    
122	 *
                    
130	 */
                    
131	protected function setCookie($Name, $Value, $Expires, $Path = '', $Domain = '', $Secure = false, $HTTPOnly = false)
                    
132	{
                    
170		$this->setP3PHeader();
                    
171		$this->setCookie($this->name, 'deleted', time() - 31536001, $this->path, $this->domain);
                    
172	}
                    
                
CUserManager.php https://gitlab.com/BGCX261/zion-downloads-css-svn-to-git.git | PHP | 279 lines
                    
1<?php
                    
2/**
                    
11 * 
                    
12 * @version $Id: CUserManager.php 182 2008-12-18 19:12:19Z smithxxl $
                    
13 * =============================================================================
                    
188	            //Sets cookies
                    
189	            setcookie("aid", $aid, time()+LOGIN_COOKIE_LIFETIME);
                    
190	            setcookie("password", $this->encrypt_password($password), time()+LOGIN_COOKIE_LIFETIME);
                    
190	            setcookie("password", $this->encrypt_password($password), time()+LOGIN_COOKIE_LIFETIME);
                    
191	            setcookie("user", isset($_SESSION['user']['user'])?$_SESSION['user']['user']:null, time()+LOGIN_COOKIE_LIFETIME);
                    
192	        }
                    
194	        {
                    
195	        	setcookie("aid", $aid);
                    
196	            setcookie("password", $this->encrypt_password($password));
                    
196	            setcookie("password", $this->encrypt_password($password));
                    
197	            setcookie("user", $_SESSION['user']['user']);
                    
198	        }
                    
                
userservice.php https://github.com/martijnvermaat/quick-hacks.git | PHP | 362 lines
                    
1<?php
                    
2class UserService {
                    
160                $cookie = $id .':'. md5($username.$password);
                    
161                setcookie($this->cookiekey, $cookie, time() + $this->cookietime);
                    
162            }
                    
169    function logout() {
                    
170        @setcookie($this->cookiekey, NULL, time() - 1);
                    
171        unset($_COOKIE[$this->cookiekey]);
                    
359    function getCookieKey()       { return $this->cookiekey; }
                    
360    function setCookieKey($value) { $this->cookiekey = $value; }
                    
361}
                    
                
session.php https://github.com/LisaX/oscommerce.git | PHP | 311 lines
                    
1<?php
                    
2/*
                    
109
                    
110      if ( !osc_empty(basename(STORE_SESSIONS)) && file_exists(dirname(__FILE__) . '/session/' . basename(STORE_SESSIONS) . '.php') ) {
                    
111        include(dirname(__FILE__) . '/session/' . basename(STORE_SESSIONS) . '.php');
                    
138        if ( isset($_COOKIE[$this->_name]) ) {
                    
139          setcookie($this->_name, '', time()-42000, $this->getCookieParameters('path'), $this->getCookieParameters('domain'));
                    
140        }
                    
186        if ( isset($_COOKIE[$this->_name]) ) {
                    
187          setcookie($this->_name, '', time()-42000, $this->getCookieParameters('path'), $this->getCookieParameters('domain'));
                    
188        }
                    
                
accmngr.php https://github.com/nandor/myGreenTown.git | PHP | 188 lines
                    
1<?php
                    
2	include 'include/lang.php';
                    
2	include 'include/lang.php';
                    
3	include 'include/config.php';
                    
4	include 'include/lib.php';
                    
4	include 'include/lib.php';
                    
5	include 'include/usr.class.php';
                    
6	include 'include/db.php';
                    
74			    if (isset ($_COOKIE['userName'])) {
                    
75			        setCookie ("userName", $usr->name, time() + 3600000);
                    
76			    }
                    
105				if (isset ($_COOKIE['userName'])) {
                    
106				    setCookie ("userName", $usr->name, time() + 3600000);
                    
107				    setCookie ("userPass", $usr->pass, time() + 3600000);
                    
                
Session.php https://gitlab.com/igorbabko/mindk | PHP | 207 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * File /framework/session/Session.php contains Session class to easily manipulate
                    
4 * with session variables.
                    
5 *
                    
6 * PHP version 5
                    
7 *
                    
107            $params = session_get_cookie_params();
                    
108            setcookie(
                    
109                session_name(),
                    
                
index.php https://gitlab.com/bkrpage/php-Login-System | PHP | 167 lines
                    
27				there is a working version at <a href="http://student20352.201415.uk">my University sub-domain</a>.</p>
                    
28<?php
                    
29		if ($_GET['successfulReset']){
                    
66				$uid = "i7709331"; 
                    
67				$pwd = "phppass"; 
                    
68				$host = "127.0.0.1";
                    
100				$uid = "i7709331"; 
                    
101				$pwd = "phppass"; 
                    
102				$host = "127.0.0.1";
                    
126					
                    
127					header('Location: control_panel.php');
                    
128				} 
                    
162	<footer>
                    
163		<div id="github"> This site was made by Bradley Page using PHP and MySQLi. To see the working innards as well as my other projects, check out my <a href="https://github.com/bkrpage/php-Login-System">Github Repo</a>! </div>
                    
164	</footer>
                    
                
Login.php https://github.com/jacknicole/sugarcrm_dev.git | PHP | 218 lines
                    
1<?php
                    
2if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
                    
46	ob_clean();
                    
47   	header("Location: index.php?module=Home&action=index");
                    
48    sugar_cleanup(true);
                    
80    }
                    
81    SugarApplication::setCookie('loginErrorMessage', '', time()-42000, '/');
                    
82}
                    
191					var url = '&to_pdf=1&module=Home&action=index&entryPoint=Changenewpassword&recaptcha_challenge_field='+Recaptcha.get_challenge()+'&recaptcha_response_field='+ Recaptcha.get_response();
                    
192					YAHOO.util.Connect.asyncRequest('POST','index.php',callback2,url);
                    
193			}</script>";
                    
                
profile.php http://esglobalban.googlecode.com/svn/trunk/ | PHP | 246 lines
                    
172  			<td class="rowColor2"><input name="steamId" id="steamdId" type="text" value="<?=$user->getSteamId()?>" size="25" maxlength="25"/> (must be in <b>STEAM_X:X:XXXXXX</b> format)
                    
173  			<?php if(!$valid['steamId']) { ?><span class="error">Steam ID not in vaild format</span><?php } ?></td>
                    
174  		<tr>
                    
181  			<td class="rowColor2"><input type="password" name="curPassword" value="" size="25" maxlength="25"/>
                    
182  			<?php if(!$valid['curPassword']) { ?><span class="error">Enter a valid password</span><?php } ?></td>
                    
183  		</tr>
                    
213  			<td class="rowColor1"><input type="password" name="cpassword" value="" size="25" maxlength="25"/>
                    
214  			<?php if(!$valid['cpassword']) { ?><span class="error">Enter a valid password</span><?php } ?></td>
                    
215  		</tr>
                    
218  			<td class="rowColor2"><input type="password" name="npassword" value="" size="25" maxlength="25"/>
                    
219  			<?php if(!$valid['npassword']) { ?><span class="error">Enter a valid password</span><?php } ?></td>
                    
220  		</tr>
                    
223  			<td class="rowColor1"><input type="password" name="vpassword" value="" size="25" maxlength="25"/>
                    
224  			<?php if(!$valid['vpassword']) { ?><span class="error">Password mis-match</span><?php } ?></td>
                    
225  		</tr>
                    
                
ch02s09.html https://gitlab.com/komputer007123/cpulogger | HTML | 78 lines
                    
10          <code class="code">xmlrpc_client::setRequestCompression()</code>). Note that the
                    
11          ZLIB php extension needs to be enabled in PHP to support
                    
12          compression.</p></li><li><p>Implement HTTP 1.1 connections, but only if CURL is enabled
                    
40          trough all members: <code class="code">xmlrpcval::structMemExists()</code></p></li><li><p>Expand methods <code class="code">xmlrpcval::addArray</code>,
                    
41          <code class="code">addScalar</code> and <code class="code">addStruct</code> allowing extra php
                    
42          values to be added to xmlrpcval objects already formed.</p></li><li><p>Let the <code class="code">xmlrpc_client::send</code> method accept an XML
                    
44          debugging and integration with the php native xmlrpc
                    
45          extension</p></li><li><p>Extend the <code class="code">php_xmlrpc_encode</code> and
                    
46          <code class="code">php_xmlrpc_decode</code> functions to allow serialization and
                    
57          parameter to both <code class="code">php_xmlrpc_encode</code> and
                    
58          <code class="code">php_xmlrpc_decode</code>.</p></li><li><p>Extend the <code class="code">php_xmlrpc_encode</code> function to allow
                    
59          automatic serialization of iso8601-conforming php strings as
                    
64          and has many caveats, with php being a typeless language and
                    
65          all...</p><p>With PHP versions lesser than 5.0.3 wrapping of php functions
                    
66          into xmlrpc methods is not supported yet.</p></li><li><p>Allow object methods to be used in server dispatch map</p></li><li><p>Added a complete debugger solution, in the
                    
                
index.php https://github.com/mathieu/fusionforge.git | PHP | 294 lines
                    
1<?php
                    
2/**
                    
25
                    
26require_once('../env.inc.php');
                    
27require_once $gfwww.'include/pre.php';
                    
103
                    
104<p> <?php echo _('Welcome'); ?> <strong><?php print $u->getRealName(); ?></strong>. </p>
                    
105<p>
                    
111<?php if($GLOBALS['sys_use_people']) { ?>
                    
112	<li><?php echo util_make_link ('/people/editprofile.php','<strong>'._('Edit My Skills Profile').'</strong>'); ?></a></li>
                    
113<?php } ?>
                    
131<td><strong><?php print $u->getUnixName(); ?></strong>
                    
132<br /><a href="change_pw.php">[<?php echo _('Change Password'); ?>]</a></td>
                    
133</tr>
                    
173<td><strong><?php print $u->getEmail(); ?></strong>
                    
174<br /><a href="change_email.php">[<?php echo _('Change Email Addr'); ?>]</a>
                    
175</td>
                    
                
ApiAjaxLogin.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 171 lines
                    
1<?php
                    
2/**
                    
45					$wgUser->setOption( 'rememberpassword', $Remember ? 1 : 0 );
                    
46					$wgUser->setCookies();
                    
47
                    
                
RequestDataCollector.php https://github.com/rrehbeindoi/symfony.git | PHP | 426 lines
                    
1<?php
                    
2
                    
113
                    
114        if (isset($this->data['request_headers']['php-auth-pw'])) {
                    
115            $this->data['request_headers']['php-auth-pw'] = '******';
                    
117
                    
118        if (isset($this->data['request_server']['PHP_AUTH_PW'])) {
                    
119            $this->data['request_server']['PHP_AUTH_PW'] = '******';
                    
146        if ($response->isRedirect()) {
                    
147            $response->headers->setCookie(new Cookie(
                    
148                'sf_redirect',
                    
                
Soap.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 241 lines
                    
1<?php
                    
2/**
                    
67     *
                    
68     * @param string $serviceInfo PHP service interface name, should include version if present
                    
69     * @param string|null $storeCode
                    
103        if (TESTS_XDEBUG_ENABLED) {
                    
104            $soapClient->setCookie('XDEBUG_SESSION', 1);
                    
105        }
                    
131
                    
132        /** TESTS_BASE_URL is initialized in PHPUnit configuration */
                    
133        $wsdlUrl = rtrim(TESTS_BASE_URL, '/') . self::WSDL_BASE_PATH . '/' . $storeCode . '?wsdl=1&services=';
                    
                
util.php https://bitbucket.org/dt167glabgroup3/part2.git | PHP | 326 lines
                    
1<?php
                    
2/*******************************************************************************
                    
3 * Projekt, Kurs: DT16/G
                    
4 * File: util.php
                    
5 * Desc: Util file for Projekt
                    
72	    $params = session_get_cookie_params();
                    
73	    setcookie(session_name(), '', time() - 42000,
                    
74	        $params["path"], $params["domain"],
                    
                
external.php https://github.com/pratikdhaboo/kodelearn.git | PHP | 427 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
13	 * @var     array     internal header cache for curl processing
                    
14	 * @todo    remove in PHP 5.3, use Lambda instead
                    
15	 */
                    
215		// Set cookies
                    
216		$http_request->setCookies($request->cookie());
                    
217
                    
269		// and DOES NOT require writing data to disk before putting it, if
                    
270		// reading the PHP docs you may have got that impression. SdF
                    
271		$options[CURLOPT_POSTFIELDS] = $request->body();
                    
311			throw new Kohana_Request_Exception('Failed to set CURL options, check CURL documentation: :url',
                    
312				array(':url' => 'http://php.net/curl_setopt_array'));
                    
313		}
                    
345	/**
                    
346	 * Execute the request using PHP stream. (not recommended)
                    
347	 *
                    
                
login.php https://bitbucket.org/jonarano/joneame.git | PHP | 215 lines
                    
1<?PHP
                    
2// The source code packaged with this file is Free Software, Copyright (C) 2005 by
                    
105            case 0:    // Borra cookie, logout
                    
106                setcookie ("joneame_key", '', $this->now - 3600, $globals['base_url']); // Expiramos el cookie
                    
107                $this->SetUserCookie(false);
                    
121                        .$time);
                    
122                setcookie("joneame_key", $strCookie, $time, $globals['base_url'].'; HttpOnly');
                    
123                break;
                    
167        if ($do_login) {
                    
168            setcookie("joneame", $this->user_login.':'.$this->mnm_user[1], $this->now + 3600000, $globals['base_url']);
                    
169        } else {
                    
169        } else {
                    
170            setcookie("joneame", '_:'.$this->mnm_user[1], $this->now + 360000, $globals['base_url']);
                    
171        }
                    
                
ACloudSysCoreCommon.php https://gitlab.com/wuhang2003/phpwind | PHP | 250 lines
                    
1<?php
                    
2! defined ( 'ACLOUD_PATH' ) && exit ( 'Forbidden' );
                    
98			$ua = substr ( md5 ( $_SERVER ['HTTP_USER_AGENT'] . '\t' . rand ( 1000, 9999 ) . '\t' . time () ), 8, 18 );
                    
99			setcookie ( $key, $ua, time () + 86400 * 365 * 5 );
                    
100		}
                    
                
fb_login.php https://github.com/ibnoe/Microweber.git | PHP | 209 lines
                    
1<?php
                    
2/**
                    
13		parent::Controller ();
                    
14		require_once (APPPATH . 'controllers/default_constructor.php');
                    
15	}
                    
33					//var_dump($v);
                    
34					//setcookie( $k); 
                    
35				}*/
                    
85			$this->load->vars ( $this->template );
                    
86			$content_filename = $this->load->file ( DEFAULT_TEMPLATE_DIR . 'blocks/users/fb_login.php', true );
                    
87			print ($content_filename) ;
                    
110			foreach ( $_COOKIE as $k => $v ) {
                    
111				//setcookie ( $k );
                    
112				if (stristr ( $k, 'fbs_' )) {
                    
113					//var_dump($v);
                    
114				//setcookie( $k); 
                    
115				}
                    
                
test_server.h https://gitlab.com/iranjith4/hhvm | C Header | 149 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_TEST_SERVER_H_
                    
18#define incl_HPHP_TEST_SERVER_H_
                    
                
HeadersTest.php https://github.com/mrbanzai/zf2.git | PHP | 258 lines
                    
1<?php
                    
2
                    
7
                    
8class HeadersTest extends \PHPUnit_Framework_TestCase
                    
9{
                    
228        $headers = new Headers();
                    
229        $cookie1 = new Header\SetCookie('foo', 'bar');
                    
230        $cookie2 = new Header\SetCookie('bar', 'baz');
                    
245        $headers = new Headers();
                    
246        $cookie1 = new Header\SetCookie('foo', 'bar');
                    
247        $cookie2 = new Header\SetCookie('bar', 'baz');
                    
                
flavorParamsAction.class.php https://github.com/richhl/kalturaCE.git | PHP | 140 lines
                    
1<?php
                    
2/**
                    
6 */
                    
7require_once ( "kalturaSystemAction.class.php" );
                    
8
                    
21		{
                    
22			$this->getResponse()->setCookie('flavor-params-advanced', $this->getRequestParameter("advanced"));
                    
23			$this->advanced = (int)$this->getRequestParameter("advanced");
                    
                
schema.php https://github.com/orchestra-io/sample-openx.git | PHP | 252 lines
                    
1<?php
                    
2/*
                    
28 *
                    
29 * $Id: schema.php 30820 2009-01-13 19:02:17Z andrew.hill $
                    
30 *
                    
32
                    
33require_once './init.php';
                    
34
                    
39{
                    
40    header('Location: archive.php');
                    
41    exit;
                    
43
                    
44require_once 'lib/schema.inc.php';
                    
45if (array_key_exists('clear_cookies', $_POST))
                    
46{
                    
47    setcookie('schemaPath', '');
                    
48    setcookie('schemaFile', '');
                    
                
VolunteerMatchAPI.php https://github.com/volunteermatch/vm-contrib.git | PHP | 258 lines
                    
1<?php
                    
2
                    
44				// by default, expire headers in 10 minutes
                    
45				setcookie('vmapi_session_headers', json_encode(self::$lastHeaders), $timestamp + 600, '/');
                    
46			}
                    
56			// dependant upon drupal. in order to make the entire class drupal-independant
                    
57			// we would have to use a native PHP method for sending HTTP requests.
                    
58			self::$lastResponse = drupal_http_request($url, self::$lastHeaders, $type);
                    
                
bxcms.php https://github.com/chregu/fluxcms.git | PHP | 331 lines
                    
1<?php
                    
2// +----------------------------------------------------------------------+
                    
92                    if (isset($_GET['isMobile']) && $_GET['isMobile'] == "false") {
                    
93                        setcookie("isMobile", false, 0, "/");
                    
94                    } else {
                    
94                    } else {
                    
95                        setcookie("isMobile", "true", time() + 60 * 60 * 24 * 30 * 6, "/");
                    
96                        $GLOBALS['POOL']->config->theme = "mobile";
                    
                
functions.php http://xoopscube-modules.googlecode.com/svn/trunk/ | PHP | 198 lines
                    
1<?php
                    
2// $Id: functions.php,v 1.4 2008/08/28 14:43:24 minahito Exp $
                    
3//  ------------------------------------------------------------------------ //
                    
4//                XOOPS - PHP Content Management System                      //
                    
5//                    Copyright (c) 2000 XOOPS.org                           //
                    
82	}
                    
83	if ( !file_exists('./language/'.$language.'/install.php') ) {
                    
84		$language = 'english';
                    
85	}
                    
86	setcookie('install_lang', $language);
                    
87	return $language;
                    
155function check_language($language){
                    
156    if ( file_exists('./language/'.$language.'/install.php') ) {
                    
157        return $language;
                    
167    if(isset($option[0]) && $option[0] != ''){
                    
168        $content .= '<a href="javascript:void(0);" onclick=\'location.href="index.php?op='.htmlspecialchars($option[0]).'"\' class="back" style="display:inline-block;vertical-align:top;"><img src="img/back.png" alt="'._INSTALL_L42.'"></a>';
                    
169    }else{
                    
                
Default.aspx https://andamanalumini.svn.codeplex.com/svn | ASP.NET | 128 lines
                    
11        //Geolocation data is stored as serialized JSON in a cookie
                    
12        //Bug reports : http://forum.ipinfodb.com/viewforum.php?f=7
                    
13        function geolocate(timezone, cityPrecision, objectVar) {
                    
63                    JSONString = JSON.stringify(answer);
                    
64                    setCookie('geolocation', JSONString, 365);
                    
65                    geodata = answer;
                    
86            //Set the cookie
                    
87            function setCookie(c_name, value, expire) {
                    
88                var exdate = new Date();
                    
                
sedna_options.php https://bitbucket.org/pombredanne/spip-zone-treemap.git | PHP | 183 lines
                    
1<?php
                    
2
                    
13	include_spip('inc/cookie');
                    
14	spip_setcookie('sedna_color', $var_color, time()+365*24*3600);
                    
15	$_COOKIE['sedna_color'] = $var_color;
                    
155				include_spip('inc/cookie');
                    
156				spip_setcookie('sedna_lu', $lus,
                    
157					time()+365*24*3600);
                    
                
frontController.class.php https://bitbucket.org/Kadet/pipecms.git | PHP | 166 lines
                    
1<?php
                    
2
                    
33
                    
34        if(file_exists(view::$templateDir.'/functions.php'))
                    
35            include view::$templateDir.'/functions.php';
                    
99        {
                    
100            setcookie('lang', $_GET['lang']);
                    
101            language::$langName = $_GET['lang'];
                    
                
debug.php https://gitlab.com/edgarze188/sunrise | PHP | 225 lines
                    
1<?php
                    
2
                    
23	$request->setBody(array());
                    
24	$request->setCookies(array());
                    
25	$request->setFileNames(array());
                    
103	<meta charset="UTF-8">
                    
104	<title><?php echo esc_html($title) ?></title>
                    
105	<link rel="stylesheet" href="<?php echo wfUtils::getBaseURL() . 'css/main.css' ?>">
                    
147<div id="wrapper">
                    
148	<h1><?php echo esc_html($title) ?></h1>
                    
149
                    
155		</thead>
                    
156		<?php foreach ($fields as $label => $value): ?>
                    
157			<tr>
                    
157			<tr>
                    
158				<td><?php echo esc_html($label) ?>:</td>
                    
159				<td><?php echo esc_html($value) ?></td>
                    
                
Injector.php https://github.com/Kazuzeya/OpenFlame-Framework.git | PHP | 296 lines
                    
1<?php
                    
2/**
                    
6 * @copyright   (c) 2010 - 2011 openflame-project.org
                    
7 * @license     http://opensource.org/licenses/mit-license.php The MIT License
                    
8 * @link        https://github.com/OpenFlame/OpenFlame-Framework
                    
9 *
                    
10 * Minimum Requirement: PHP 5.3.0
                    
11 */
                    
20 *
                    
21 * @license     http://opensource.org/licenses/mit-license.php The MIT License
                    
22 * @link        https://github.com/OpenFlame/OpenFlame-Framework
                    
91			$cookie = $header->getSubmodule('Cookie');
                    
92			$cookie->setCookieManager($injector->get('cookie'));
                    
93
                    
                
Session.php https://github.com/PJK/Nette-Exceptions---Independent-Components.git | PHP | 552 lines
                    
1<?php
                    
2
                    
38		// security
                    
39		'referer_check' => '',    // must be disabled because PHP implementation is invalid
                    
40		'use_cookies' => 1,       // must be enabled to prevent Session Hijacking and Fixation
                    
481	 */
                    
482	public function setCookieParams($path, $domain = NULL, $secure = NULL)
                    
483	{
                    
523		$cookie = $this->getCookieParams();
                    
524		$this->getHttpResponse()->setCookie(session_name(), session_id(), $cookie['lifetime'], $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httponly']);
                    
525		$this->getHttpResponse()->setCookie('nette-browser', $_SESSION['__NF']['B'], HttpResponse::BROWSER, $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httponly']);
                    
                
index.php https://bitbucket.org/gwathsule/enterfriend.git | PHP | 250 lines
                    
1<?php 
                    
2// +------------------------------------------------------------------------+
                    
10// +------------------------------------------------------------------------+
                    
11require_once('assets/init.php');
                    
12if ($wo['loggedin'] == true) {
                    
46if (!isset($_COOKIE['src'])) {
                    
47    @setcookie('src', '1', time() + 31556926, '/');
                    
48}
                    
73    case 'maintenance':
                    
74        include('sources/maintenance.php');
                    
75        break;
                    
76    case 'video-call':
                    
77        include('sources/video.php');
                    
78        break;
                    
79    case 'home':
                    
80        include('sources/home.php');
                    
81        break;
                    
                
oxSchema-frame.php https://bitbucket.org/valmy/openx.git | PHP | 245 lines
                    
1<?php
                    
2/*
                    
32
                    
33require_once '../../../../init.php';
                    
34
                    
36{
                    
37    header('Location: oxSchema-archive.php');
                    
38    exit;
                    
42{
                    
43    setcookie('schemaPath', '');
                    
44    setcookie('schemaFile', '');
                    
69}
                    
70setcookie('schemaPath', $schemaPath);
                    
71setcookie('schemaFile', $schemaFile);
                    
72
                    
73require_once 'lib/oxSchema.inc.php';
                    
74global $oSchema;
                    
                
Exception.php https://github.com/imagecms/ImageCMS.git | PHP | 159 lines
                    
1<?php
                    
2/**
                    
107        self::INVALID_COOKIE_DOMAIN => array('InvalidCookieDomain', 'An illegal attempt was made to set a cookie under a different domain than the current page.'),
                    
108        self::UNABLE_TO_SET_COOKIE => array('UnableToSetCookie', 'A request to set a cookie\'s value could not be satisfied.'),
                    
109        self::UNEXPECTED_ALERT_OPEN => array('UnexpectedAlertOpen', 'A modal dialog was open, blocking this operation'),
                    
                
video.php https://github.com/sangyuanyuan/fanqie.git | PHP | 284 lines
                    
36<script>
                    
37	total("<?php echo $category->name;?>","<?php echo $category->platform;?>");	
                    
38</script>
                    
124				<div id=paginate><?php paginate();?></div>
                    
125				<div id=comment_box <?php if($video->commentable!="on"){?>style="display:none;"<?php } ?>>
                    
126					<form id="comment_form" action="/pub/pub.post.php" method="post">
                    
160						</div>
                    
161						<div class=title><a  href="video.php?id=<?php echo $records[$i]->id;?>"><?php echo strip_tags($records[$i]->title);?></a></div>
                    
162					</div>
                    
197						</div>
                    
198						<div class=title><a  href="video.php?id=<?php echo $records[$i]->id;?>"><?php echo strip_tags($records[$i]->title);?></a></div>
                    
199					</div>
                    
216						</div>
                    
217						<div class=title><a href="video.php?id=<?php echo $records[$i]->id;?>"><?php echo strip_tags($records[$i]->title);?></a></div>
                    
218					</div>
                    
                
index.php git://git.savannah.nongnu.org/savane-cleanup.git | PHP | 363 lines
                    
1<?php
                    
2# Manage user preferences
                    
22
                    
23# we need to define the theme before loading the pre.php init script,
                    
24# otherwise the page needs to be reloaded for the change to take effect.
                    
25# see bug #1987
                    
26require_once('../../include/sane.php');
                    
27extract(sane_import('post',
                    
40
                    
41require_once('../../include/init.php');
                    
42require_once('../../include/timezones.php');
                    
61    }
                    
62  setcookie("SV_THEME", $user_theme, time() + 60*60*24*365, $GLOBALS['sys_url_topdir']);
                    
63
                    
139
                    
140print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">';
                    
141
                    
                
EncryptCookies.php https://gitlab.com/jjpa2018/dashboard | PHP | 194 lines
                    
1<?php
                    
2
                    
144
                    
145            $response->headers->setCookie($this->duplicate(
                    
146                $cookie,
                    
                
remotefilegetter.php https://gitlab.com/myurd/magmi-git | PHP | 348 lines
                    
1<?php
                    
2
                    
99                //fix for some servers not able to follow location & failing downloads
                    
100                //only set follow location if compatible with PHP settings
                    
101                if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) {
                    
223    // using cookie
                    
224    public function setCookie($cookie = null)
                    
225    {
                    
                
post.php https://gitlab.com/kath.de/cibedo_cibedo.de | PHP | 287 lines
                    
1<?php
                    
2/**
                    
11/** WordPress Administration Bootstrap */
                    
12require_once( dirname( __FILE__ ) . '/admin.php' );
                    
13
                    
13
                    
14$parent_file = 'edit.php';
                    
15$submenu_file = 'edit.php';
                    
53if ( ! $sendback ||
                    
54     strpos( $sendback, 'post.php' ) !== false ||
                    
55     strpos( $sendback, 'post-new.php' ) !== false ) {
                    
56	if ( 'attachment' == $post_type ) {
                    
57		$sendback = admin_url( 'upload.php' );
                    
58	} else {
                    
58	} else {
                    
59		$sendback = admin_url( 'edit.php' );
                    
60		if ( ! empty( $post_type ) ) {
                    
                
class.PollUser.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 154 lines
                    
1<?php
                    
2/**
                    
7*/
                    
8require_once('class.User.inc.php');
                    
9
                    
81		$_COOKIE[$this->commentwritten_varname . $id] = time() + 360;
                    
82		setcookie($this->commentwritten_varname . $id, 1, time() + 360);
                    
83		$_SESSION[$this->commentwritten_varname . $id] = $GLOBALS[$this->commentwritten_varname . $id] = (int) time() +360;
                    
118		$_COOKIE[$this->poll_varname . $id] = $remember_choise;
                    
119		setcookie($this->poll_varname . $id, $remember_choise, time()+31536000);
                    
120		$_SESSION[$this->poll_varname . $id] = $GLOBALS[$this->poll_varname . $id] = $remember_choise;
                    
                
adodb-session.php https://github.com/ayamyau/concrete5.git | PHP | 439 lines
                    
17 
                    
18	include('adodb.inc.php');
                    
19	include('adodb-session.php');
                    
27
                    
28	include('adodb.inc.php');
                    
29	include('adodb-session.php');
                    
70  3. Recommended is PHP 4.1.0 or later. There are documented
                    
71	 session bugs in earlier versions of PHP.
                    
72
                    
99if (!defined('_ADODB_LAYER')) {
                    
100	include (dirname(__FILE__).'/adodb.inc.php');
                    
101}
                    
110 /*
                    
111	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
                    
112*/
                    
                
Session.php https://gitlab.com/crazybutterfly815/magento2 | PHP | 424 lines
                    
1<?php
                    
2/**
                    
12 * @method Session setCustomerId()
                    
13 * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
                    
14 */
                    
120     * @param array $data
                    
121     * @SuppressWarnings(PHPMD.ExcessiveParameterList)
                    
122     */
                    
176     * @return bool
                    
177     * @SuppressWarnings(PHPMD.BooleanGetMethodName)
                    
178     */
                    
316        $value = $this->getKey();
                    
317        $this->setCookie($value, $duration, $path);
                    
318        return $this;
                    
334        if (null !== $value) {
                    
335            $this->setCookie($value, $duration, $path);
                    
336        }
                    
                
admin.php http://proquiz.googlecode.com/svn/trunk/ | PHP | 158 lines
                    
70<script src="js/jquery.lwtCountdown-1.0.js" type="text/javascript"></script>
                    
71<?php include_once('common_header.php'); ?>
                    
72</head>
                    
83        <div id="menuCenter">
                    
84    	   <?php include_once('menu.php'); ?>
                    
85        </div>
                    
91    <div class="sideCnt">
                    
92        <?php include_once('sidebar.php'); ?>
                    
93    </div>
                    
122		<div class="pqMain">
                    
123	    <?php include_once('adminmenu.php'); ?>
                    
124            <div class="cntHolder">
                    
142	<!-- Footer Include -->
                    
143    <div id="footer"><?php include_once('footer.php'); ?></div> <!-- wrraper End -->
                    
144<script type="text/javascript">
                    
                
app.php https://gitlab.com/YakovLachin/MiMaL | PHP | 182 lines
                    
1<?php
                    
2
                    
2
                    
3require_once __DIR__ . '/../vendor/autoload.php';
                    
4
                    
60        $cookie = new Cookie("Mimal-Access-Token", $token , $expire, '');
                    
61        $response->headers->setCookie($cookie);
                    
62    }
                    
                
facebook.php https://github.com/jkinner/ringside.git | PHP | 246 lines
                    
1<?php
                    
2//
                    
3// +---------------------------------------------------------------------------+
                    
4// | Facebook Platform PHP5 client                                 |
                    
5// +---------------------------------------------------------------------------+
                    
33
                    
34include_once 'ringside/api/clients/facebookapi_php5_restlib.php';
                    
35
                    
167  public function get_add_url($next=null) {
                    
168    return self::get_facebook_url().'/add.php?api_key='.$this->api_key .
                    
169      ($next ? '&next=' . urlencode($next) : '');
                    
172  public function get_login_url($next, $canvas) {
                    
173    return self::get_facebook_url().'/login.php?v=1.0&api_key=' . $this->api_key .
                    
174      ($next ? '&next=' . urlencode($next)  : '') .
                    
199      foreach ($cookies as $name => $val) {
                    
200        setcookie($this->api_key . '_' . $name, $val, (int)$expires);
                    
201        $_COOKIE[$this->api_key . '_' . $name] = $val;
                    
                
transport.h https://github.com/tstarling/hiphop-php.git | C Header | 475 lines
                    
2   +----------------------------------------------------------------------+
                    
3   | HipHop for PHP                                                       |
                    
4   +----------------------------------------------------------------------+
                    
6   +----------------------------------------------------------------------+
                    
7   | This source file is subject to version 3.01 of the PHP license,      |
                    
8   | that is bundled with this package in the file LICENSE, and is        |
                    
9   | available through the world-wide-web at the following url:           |
                    
10   | http://www.php.net/license/3_01.txt                                  |
                    
11   | If you did not receive a copy of the PHP license and are unable to   |
                    
12   | obtain it through the world-wide-web, please send a note to          |
                    
13   | license@php.net so we can mail you a copy immediately.               |
                    
14   +----------------------------------------------------------------------+
                    
16
                    
17#ifndef incl_HPHP_HTTP_SERVER_TRANSPORT_H_
                    
18#define incl_HPHP_HTTP_SERVER_TRANSPORT_H_
                    
                
adodb-session.php https://gitlab.com/mrktinh/bookonline | PHP | 439 lines
                    
19
                    
20	include('adodb.inc.php');
                    
21	include('adodb-session.php');
                    
29
                    
30	include('adodb.inc.php');
                    
31	include('adodb-session.php');
                    
72  3. Recommended is PHP 4.1.0 or later. There are documented
                    
73	 session bugs in earlier versions of PHP.
                    
74
                    
101if (!defined('_ADODB_LAYER')) {
                    
102	include (dirname(__FILE__).'/adodb.inc.php');
                    
103}
                    
112 /*
                    
113	Thanks Joe Li. See http://phplens.com/lens/lensforum/msgs.php?id=11487&x=1
                    
114*/
                    
                
cart.js https://bitbucket.org/maximefaulon/laravel-blackmoon.git | JavaScript | 351 lines
                    
4var baseUrllink = "/catalog/productSheet/";
                    
5// var baseUrlCatalog = "/Symfony/web/app_dev.php/catalog/";
                    
6
                    
9    $.ajax({
                    
10        url: "/Symfony/web/app_dev.php/catalog/product/getPrice",
                    
11        method: "post",
                    
20
                    
21function setCookie(cname, cvalue, exhours) {
                    
22    var d = new Date();
                    
32function saveCart(inCartItemsNum, cartArticles) {
                    
33    setCookie('inCartItemsNum', inCartItemsNum, 1);
                    
34    setCookie('cartArticles', JSON.stringify(cartArticles), 1);
                    
67        // $('#lien-panier').click(function(){
                    
68        //     return window.location='/panier.php';
                    
69        // });
                    
                
AuthManager.php https://bitbucket.org/helfreire/tccwebservice.git | PHP | 105 lines
                    
1<?php namespace Illuminate\Auth;
                    
2
                    
19		// secure, encrypted cookie values to get generated for those cookies.
                    
20		$guard->setCookieJar($this->app['cookie']);
                    
21
                    
                
FileListHelper.kt https://bitbucket.org/codetwister/series.git | Kotlin | 83 lines
                    
20
                    
21            val flUrl = URL("http://filelist.ro/takelogin.php")
                    
22            val conn = flUrl.openConnection() as HttpURLConnection
                    
52        try {
                    
53            val browseUrl = URL(String.format("http://filelist.ro/browse.php?search=%s&cat=0&searchin=0&sort=0", Uri.encode(searchTerm)))
                    
54            val urlConnection = browseUrl.openConnection() as HttpURLConnection
                    
78            CookieHandler.setDefault(cookieManager)
                    
79            cookieManager.setCookiePolicy(CookiePolicy.ACCEPT_ALL)
                    
80        }
                    
                
Response.php https://gitlab.com/szlongshu/manaphp | PHP | 425 lines
                    
6    use ManaPHP\Di;
                    
7    use ManaPHP\Http\Response\Exception;
                    
8    use ManaPHP\Http\Response\Headers;
                    
13     * Part of the HTTP cycle is return responses to the clients.
                    
14     * ManaPHP\HTTP\Response is the ManaPHP component responsible to achieve this task.
                    
15     * HTTP responses are usually composed by headers and body.
                    
17     *<code>
                    
18     *    $response = new ManaPHP\Http\Response();
                    
19     *    $response->setStatusCode(200, "OK");
                    
36        /**
                    
37         * @var \ManaPHP\Http\Response\HeadersInterface
                    
38         */
                    
291         * @param string $content
                    
292         * @param int    $jsonOptions consisting on http://www.php.net/manual/en/json.constants.php
                    
293         *
                    
                
Mink.php git://github.com/imagecms/ImageCMS.git | PHP | 500 lines
                    
1<?php
                    
2namespace Codeception\Util;
                    
48
                    
49    public function _setCookie($cookie, $value)
                    
50    {
                    
50    {
                    
51        $this->session->setCookie($cookie, $value);
                    
52    }
                    
145        if (!$url) {
                    
146            return \PHPUnit_Framework_Assert::assertNotEmpty($nodes);
                    
147        }
                    
150            if (false !== strpos($node->getAttribute('href'), $url)) {
                    
151                return \PHPUnit_Framework_Assert::assertContains(
                    
152                    $text, $node->getHtml(), "with url '{$url}'"
                    
156
                    
157        return \PHPUnit_Framework_Assert::fail("with url '{$url}'");
                    
158    }
                    
                
framework.js https://gitlab.com/lazypdf/afi-framework | JavaScript | 300 lines
                    
8
                    
9function setCookie(c_name,value,exdays) {
                    
10    var exdate=new Date();
                    
50	    type:'GET',
                    
51	    url: "index.php?view=cpanel&task=clientData&tmpl=raw",
                    
52	    dataType: "json",
                    
67		$('#edit').css('display', '');
                    
68		$('#edit').attr('href', 'index.php?view=cpanel&layout=edit&id='+id);
                    
69		$('#clientid').html(response.NomFiscal + ' <span class="glyphicon glyphicon-chevron-down"></span>');
                    
75	$('#pdf').css('display', '');
                    
76	$('#pdf').attr('href', 'index.php?view=diposits&task=getPdf&id='+id+'&tmpl=raw');
                    
77	$('#edit').css('display', '');
                    
77	$('#edit').css('display', '');
                    
78	$('#edit').attr('href', 'index.php?view=diposits&layout=edit&id='+id);
                    
79});
                    
                
 

Source

Language