|
|
|
<?php
// ---------------------------------------------------------
// Módulo : 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 very simple PHP single password cookie based login without usernames. Categories : PHP, Cookies, Security, Beginner Guides | | | 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 | | | Authentication script to authenticate users in Active Directory through LDAP. Categories : LDAP, Authentication, Cookies, PHP | | | cookie Categories : Cookies, PHP | | | Example voting script. Lets people enter suggestions and vote for existing ones. Categories : MySQL, PHP, Cookies, Complete Programs, Databases | | | The Best Authorize Categories : PHP, MySQL, Cookies | | | Secure Login Categories : PHP, MySQL, Cookies, Security | | | Simple Cookie example Categories : PHP, Beginner Guides, Cookies | | | Function that allows a Javascript cookie to be set after HTML has been outputted to the page.
Categories : PHP, Java Script, Cookies, HTML and PHP | | | 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 | | | Function that does language negotiation based on the Accept-Language header, a cookie or host name Categories : HTTP, PHP, Cookies | | | Cross Browser Session Starter Categories : PHP, Sessions, Cookies | | | How to make sure a that $foo is from a cookie and not from the URI. Categories : PHP, Variables, Global Variables, Cookies | |
|
|
|