webproger > codes > PHP
 
 image-
for an animated gif, encryption/decryption
http://qindex.info/d.php?c=2681#306
<?php
header("Content-type: image/png");
//$i = imagecreatetruecolor(500,500);
$i = imagecreate(500,500);
$b = imagecolorallocate($i,30,144,255);
imagecolortransparent($i,$b);

$a1 = 0;
$a2 = 270;
$k = imagecolorallocate($i,0,255,255);
$d = imagecolorallocate($i,30,144,255);
imagearc($i,250,250,400,400,$a1,$a2,$d);
imagearc($i,250,250,398,398,$a1,$a2,$d);
imagearc($i,250,250,396,396,$a1,$a2,$d);
imagearc($i,250,250,394,394,$a1,$a2,$d);
imagearc($i,250,250,402,402,$a1,$a2,$d);
imagearc($i,250,250,404,404,$a1,$a2,$d);
imagearc($i,250,250,406,406,$a1,$a2,$d);
imagearc($i,250,250,408,408,$a1,$a2,$d);

$t = 'DECRYPTING...';
$s = 38;
$f = $_SERVER['DOCUMENT_ROOT'].'/g/'.'tahoma.ttf';
$c = imagecolorallocate($i,30,144,255);
imagettftext($i,$s,0,83,268,$c,$f,$t);

imagepng($i);
imagedestroy($i);
?>
 
 Q_accss
http://qindex.info/d.php?c=2681#3777
function Q_accss($i) {
    global $d_id_lnk;
    $q = "SELECT * FROM qindx WHERE indx=".$i;
    $r = mysql_query($q,$d_id_lnk);
    $a = mysql_fetch_array($r);
    if($a['acss']=='c') {
        return false;
    } else {
        if($a['prnt']) {
            return Q_accss($a['prnt']);
        } else {
            return true;
        }
    }
}

-