Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions php/lib/db/toba_db_postgres7.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,17 +170,6 @@ function recuperar_nuevo_valor_secuencia($secuencia, $ejecutar = true)
return $datos[0]['seq'];
}

/**
* Retraza o activa el chequeo de constraints
* @deprecated since version 3.0.1
* @see retrasar_constraints()
* @param boolean $retrazar
*/
function retrazar_constraints($retrazar = true)
{
$this->retrasar_constraints($retrazar);
}

/**
* Retraza o activa el chequeo de constraints
* @param boolean $retrasar
Expand Down
118 changes: 0 additions & 118 deletions php/lib/toba_encriptador.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,128 +26,10 @@ static function instancia()
}
return self::$instancia;
}

/**
* Funcion que cifra un texto en base a una clave de instalacion
* @param mixed $no_encriptado
* @param mixed $clave
* @return mixed
* @deprecated desde version 3.0.11
*/
function cifrar($no_encriptado, $clave="get")
{
$cifrado = $this->Encrypt($no_encriptado,$this->clave[$clave]);
if ($clave == 'get') {
return urlencode($cifrado);
} else {
return $cifrado;
}
}

/**
* Funcion que descifra un texto en base a una clave de instalacion
* @param mixed $encriptado
* @param mixed $clave
* @return mixed
* @deprecated desde version 3.0.11
*/
function descifrar($encriptado, $clave="get")
{
$descifrado = $this->Decrypt($encriptado,$this->clave[$clave]);
if ($clave == 'get') {
return urldecode($descifrado);
} else {
return $descifrado;
}
}

//-------------------------------------------------------------
// Segun ADOdb: Session Encryption by Ari Kuorikoski <ari.kuorikoski@finebyte.com>
//-------------------------------------------------------------
/**
*
* @param type $txt
* @param type $encrypt_key
* @return type
* @deprecated desde version 3.0.11
*/
function keyED($txt,$encrypt_key)
{
$encrypt_key = md5($encrypt_key);
$ctr=0;
$tmp = "";
for ($i=0;$i<strlen($txt);$i++){
if ($ctr==strlen($encrypt_key)) $ctr=0;
$tmp.= substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1);
$ctr++;
}
return $tmp;
}

/**
* Funcion que encripta un texto en base a una clave
* @param string $txt
* @param mixed $key
* @return mixed
* @deprecated desde version 3.0.11
*/
function Encrypt($txt,$key)
{
srand((double)microtime()*1000000);
$encrypt_key = md5(rand(0,32000));
$ctr=0;
$tmp = "";
for ($i=0;$i<strlen($txt);$i++)
{
if ($ctr==strlen($encrypt_key)) $ctr=0;
$tmp.= substr($encrypt_key,$ctr,1) .
(substr($txt,$i,1) ^ substr($encrypt_key,$ctr,1));
$ctr++;
}
return base64_encode($this->keyED($tmp,$key));
}

/**
* Funcion que desencripta un texto en bae a una clave
* @param mixed $txt
* @param mixed $key
* @return mixed
* @deprecated desde version 3.0.11
*/
function Decrypt($txt,$key)
{
$txt = $this->keyED(base64_decode($txt),$key);
$tmp = "";
for ($i=0;$i<strlen($txt);$i++){
$md5 = substr($txt,$i,1);
$i++;
$tmp.= (substr($txt,$i,1) ^ $md5);
}
return $tmp;
}

/**
* Funcion que genera una clave aleatoria
* @return mixed
* @deprecated desde version 3.0.11
*/
function RandPass()
{
$randomPassword = "";
srand((double)microtime()*1000000);
for($i=0;$i<8;$i++)
{
$randnumber = rand(48,120);

while (($randnumber >= 58 && $randnumber <= 64) || ($randnumber >= 91 && $randnumber <= 96))
{
$randnumber = rand(48,120);
}

$randomPassword .= chr($randnumber);
}
return $randomPassword;
}

//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------//
/**
Expand Down
247 changes: 0 additions & 247 deletions php/lib/toba_fecha.php

This file was deleted.

Loading