<?php
// ---------------------------------------------------------
// Mdulo : chips.inc ( clase REF )
// Autor : Jorge Renato Machin Ibarra
// Inicio : Diciembre 9 de 1998
// Final : Diciembre 9 de 1998
// Dedicatoria : A Cecilia y Regina pues a quienes mas?
// ---------------------------------------------------------
function getChips( $ChpName ) {
global $$ChpName;
$vals = split( "&", $$ChpName );
while( list ( $key, $val ) = each( $vals ) ) {
list( $ChpName, $wert ) = split( "=", $val );
if ( $val ) {
global $$ChpName;
eval( "\$$ChpName = urldecode(\"$wert\");" );
}
}
}
class CHIPS {
var $Arr;
function setChips( $CookieVar0 = "COOKIE-NULL", $CookieVar1 = "COOKIE-NULL",
$CookieVar2 = "COOKIE-NULL", $CookieVar3 = "COOKIE-NULL",
$CookieVar4 = "COOKIE-NULL", $CookieVar5 = "COOKIE-NULL",
$CookieVar6 = "COOKIE-NULL", $CookieVar7 = "COOKIE-NULL",
$CookieVar8 = "COOKIE-NULL", $CookieVar9 = "COOKIE-NULL" )
{
$curr = "CookieVar0";
for ( $i = 0 ; $i < 10 && $$curr != "COOKIE-NULL"; $i++, $curr = "CookieVar".$i ) {
$this->Arr[] = $$curr;
}
}
function getParams() {
// Declara las variables globales:
if ( empty ( $this -> Arr ) )
$elements = 0;
else
$elements = count( $this -> Arr );
for( $i = 0; $i < $elements; $i++ ) {
$CookieVar = $this -> Arr[$i];
global $$CookieVar;
if ( $$CookieVar != "" ) {
if ( $param != "" )
$param .= "&";
$param .= $CookieVar . "=" . urlencode( $$CookieVar );
}
}
return $param;
}
function createCookie( $name, $min ) {
$value = $this -> getParams();
SetCookie( $name, $value, time()+ ( $min * 60 ), "/", "", 0 );
}
};
?>
PHP4 MYSQL Authentication Script with cookie. Short & Sweet
Categories : Authentication , Apache , Cookies , PHP , MySQL A flat file counter Categories : PHP , Cookies , Filesystem , Beginner Guides A very simple PHP single password cookie based login without usernames. Categories : PHP , Cookies , Security , Beginner Guides This functions makes it easy to use session-variables known from ASP. With one Cookie the array "session" will save and restore from a db-record. In this version MySQL is used but it's should very easy to change Categories : PHP , Arrays , Cookies , MySQL , Databases PHP Cookies - Simple cookie write/read methods that allow basic encryption Categories : PHP , Cookies , Security , Encryption Multilingual php webpage Categories : PHP , Languages , Cookies Cookies, PHP and y2k compliance (y2k_compliance). Categories : PHP , Cookies Query2Report : Generating Html, Pdf and Csv Reports from SQL Query Categories : PHP , PHP , HTML , PDF , Excel Smart Counter - This little script is a plain and simple hit counter that uses cookies to determine whether or not the visitor has already been counted. Categories : Cookies , HTML and PHP , PHP Store, retrieve and delete cookies using JavaScript. Categories : Java Script , Cookies , Beginner Guides , Cookies Simple PHP cookie counter Categories : PHP , Cookies , Beginner Guides Authentication script to authenticate users in Active Directory through LDAP. Categories : LDAP , Authentication , Cookies , PHP Make old style (PHP3) scripts using GET, POST, COOKIE and File uploads (POST) compatible with
PHP 4.2.0 Categories : PHP , HTML and PHP , Global Variables , Cookies , Variables cookie Categories : Cookies , PHP How to make sure a that $foo is from a cookie and not from the URI. Categories : PHP , Variables , Global Variables , Cookies