#201 Re: Ostatní redakční systémy » sunlight seznam registrovanych uživatelů » 2013-04-27 11:43:23

<?php

define('_indexroot', '../');
define('_header', '');
require _indexroot."require/load.php";


_checkGD("jpg", true);


$imgw = 65;
$imgh = 22;
$img = imagecreate($imgw, $imgh);
if(isset($_GET['n']) and isset($_SESSION[_sessionprefix.'captcha_code'][(int)$_GET['n']])) {
list($code, $drawn) = $_SESSION[_sessionprefix.'captcha_code'][(int)$_GET['n']];
if($drawn) die;
$_SESSION[_sessionprefix.'captcha_code'][(int)$_GET['n']][1] = true;
} else die;




class linear_perspective
{

var $cam_location = array('x' => -30, 'y' => 0, 'z' => -250);
var $cam_rotation = array('x' => -1, 'y' => 0, 'z' => 0);
var $viewer_position = array('x' => 450, 'y' => -500, 'z' => -80);

function getProjection($point)
{
$translation = array();
$projection = array();

$translation['x'] = cos($this->cam_rotation['y']) * (sin($this->cam_rotation['z']) * ($point['y'] - $this->cam_location['y']) + cos($this->cam_rotation['z']) * ($point['x'] - $this->cam_location['x'])) - sin($this->cam_rotation['y']) * ($point['z'] - $this->cam_location['z']);
$translation['y'] = sin($this->cam_rotation['x']) * (cos($this->cam_rotation['y']) * ($point['z'] - $this->cam_location['z']) + sin($this->cam_rotation['y']) * (sin($this->cam_rotation['z']) * ($point['y'] - $this->cam_location['y']) + cos($this->cam_rotation['z']) * ($point['x'] - $this->cam_location['x']))) + cos($this->cam_rotation['z']) * (cos($this->cam_rotation['z']) * ($point['y'] - $this->cam_location['y']) - sin($this->cam_rotation['z']) * ($point['x'] - $this->cam_location['x']));
$translation['z'] = cos($this->cam_rotation['x']) * (cos($this->cam_rotation['y']) * ($point['z'] - $this->cam_location['z']) + sin($this->cam_rotation['y']) * (sin($this->cam_rotation['z']) * ($point['y'] - $this->cam_location['y']) + cos($this->cam_rotation['z']) * ($point['x'] - $this->cam_location['x']))) - sin($this->cam_rotation['z']) * (cos($this->cam_rotation['z']) * ($point['y'] - $this->cam_location['y']) - sin($this->cam_rotation['z']) * ($point['x'] - $this->cam_location['x']));

$projection['x'] = ($translation['x'] - $this->viewer_position['x']) * ($this->viewer_position['z'] / $translation['z']);
$projection['y'] = ($translation['y'] - $this->viewer_position['y']) * ($this->viewer_position['z'] / $translation['z']);

return $projection;
}

}

function imagelightnessat($img, $x, $y)
{
if(!is_resource($img)) return 0.0;

$c = @imagecolorat($img, $x, $y);
if($c === false) return false;

if(imageistruecolor($img)) {
$red = ($c >> 16) & 0xFF;
$green = ($c >> 8) & 0xFF;
$blue = $c & 0xFF;
} else {
$i = imagecolorsforindex($img, $c);
$red = $i['red'];
$green = $i['green'];
$blue = $i['blue'];
}

$m = min($red, $green, $blue);
$n = max($red, $green, $blue);
$lightness = (double)(($m + $n) / 510.0);
return ($lightness);
}

$perspective = new linear_perspective;


$matrix_dim = array('x' => 85, 'y' => 30);
$captcha_dim = array('x' => 410, 'y' => 120);
$distance = array('x' => 1, 'y' => 1, 'z' => 1);
$metric = array('x' => 10, 'y' => 25, 'z' => 5);
$offset = array('x' => 198, 'y' => -60);


$matrix = imagecreatetruecolor($matrix_dim['x'], $matrix_dim['y']);
$black = imagecolorexact($matrix, 0, 0, 0);
$white = imagecolorexact($matrix, 255, 255, 255);
$gray = imagecolorexact($matrix, 200, 200, 200);
imagefill($matrix, 0, 0, $white);


for($i = 0; $i < 300; ++$i) imagesetpixel($matrix, mt_rand(5, ($matrix_dim['x'] - 6)), mt_rand(5, ($matrix_dim['y'] - 6)), $gray);


imagefttext($matrix, 19, 0, 4, 25, $black, dirname(__file__).'/cimage.ttf', $code);


if(function_exists('imagerotate')) $matrix = imagerotate($matrix, mt_rand(-1, 1), $white);


$point = array();
for($x = 0; $x < $matrix_dim['x']; $x++) {
for($y = 0; $y < $matrix_dim['y']; $y++) {
$lightness = imagelightnessat($matrix, $x, $y);
$point[$x][$y] = $perspective->getProjection(array('x' => $x * $metric['x'] + $distance['x'], 'y' => $lightness * $metric['y'] + $distance['y'], 'z' => ($matrix_dim['y'] - $y) * $metric['z'] + $distance['z']));
}
}
imagedestroy($matrix);


$captcha = imagecreatetruecolor($captcha_dim['x'], $captcha_dim['y']);
if(_template_dark) {
$black = imagecolorexact($captcha, 255, 255, 255);
$white = imagecolorexact($captcha, 0, 0, 0);
} else {
$black = imagecolorexact($captcha, 0, 0, 0);
$white = imagecolorexact($captcha, 255, 255, 255);
}
imagefill($captcha, 0, 0, $white);


if(function_exists('imageantialias')) imageantialias($captcha, true);
for($x = 1; $x < $matrix_dim['x']; $x++)
for($y = 1; $y < $matrix_dim['y']; $y++) imageline($captcha, -$point[$x - 1][$y - 1]['x'] + $offset['x'], -$point[$x - 1][$y - 1]['y'] + $offset['y'], -$point[$x][$y]['x'] + $offset['x'], -$point[$x][$y]['y'] + $offset['y'], $black);





$width = 160;
$height = floor($width / ($captcha_dim['x'] / $captcha_dim['y']));
$rcaptcha = imagecreatetruecolor($width, $height);
imagecopyresampled($rcaptcha, $captcha, 0, 0, 0, 0, $width, $height, $captcha_dim['x'], $captcha_dim['y']);
header('Content-Type: image/png');
imagepng($rcaptcha);

#202 Re: Ostatní redakční systémy » sunlight seznam registrovanych uživatelů » 2013-04-27 11:39:17

ten  soubor  jsem  tam  i  mel   nahradil jsem   ho  a  nic je to  stejny

#206 Re: Ostatní redakční systémy » sunlight seznam registrovanych uživatelů » 2013-04-27 11:02:39

mam  jen  1  dotaz   nechci  k vuly tomu zakladat  novej  topic

proc mi  zmizel kontrolni  kod kdyz se chce nekdo  registrovat tak  okenko je prazdne  nemoze opsat kod a tudis se zaregistrovat na web

#207 Re: Ostatní redakční systémy » sunlight seznam registrovanych uživatelů » 2013-04-27 10:35:34

jj  diky  zatim  jsem  to  vyresil  tak  ze  jsou  to  neverejne  stranky ze pro zobrazeni obsahu je treba registrace

#209 Re: Ostatní redakční systémy » sunlight seznam registrovanych uživatelů » 2013-04-26 21:51:28

zdravim  potřeboval bych nastavit aby seznam registrovanych na webu videli jen registrovaní na webu a  nevim jak to mam udělat prosim o pomoc diky moc

#210 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-26 14:01:50

dobry u z jsem  na  to  prisel  chybel  mi  v  template php 1 div   predtim  nez  jsem   nainstaloval plugin tak se  to ukazovalo  spravne a po  instalaci se to  rozhodilo  az tet  me napadlo ze nekde muze chybet div a  fakt  to  bylo  tim  big_smile    i  tak  diky moc  za  rady  smile

#211 Re: Ostatní redakční systémy » sunlight smajlici » 2013-04-26 13:23:20

omlouvam    se  nemohl  jsem na  to  prijit   tak  jsem  zalozil  tema      ale  tet  po  hodne dlouhym hledani  uz  jsem na to  prisel konečne   big_smile  diky moc

#212 Re: Ostatní redakční systémy » sunlight smajlici » 2013-04-26 13:15:18

zdravicko 

kdyz nahraju do slozky mezi  smajliky nove smajliky stale mi to  ukazuje  jen 10 smajliku  a ty novy co jsem  pridal ne a nevim kde mam   nastavit aby to ukazovalo vic  smajliku budu rad za mensi pomoc

#213 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-26 09:16:52

Copyright &; 2013
      |Desing - Pepa151 | Code - Pepa151|


  nechapu proc to zmyzlo

#214 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-26 09:13:17

jasny...  ale  proc po nainstalovani  pluginu mi  zmyzel text s Footeru?

kdyz to  odinstaluju text co jsem  tam  mel  se mi zase   zobrazi

#215 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-26 08:53:53

ne  jiny  system  nechci    kdyz  nic  neni  tak  aspon  ze  je  to  na profilu   to  staci...

http://www.fanklub-nellyhot.8u.cz/  Hosting endora

#216 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-26 08:43:11

to jsem  zkousel  jeste nez jsem zakladal tema tady  i  tohle  je  dobry  akorad mam  jeden  problem jakmile jsem  dal  zapsat 2 sloubce do  databaze tak se mi stratil text co jsem  mel  ve Footeru  a misto textu co jsem tam mel tak tam mam
Reklamu na tomto hostingu zajišťuje Business Factory - internetová reklama a pokročilý internetový marketing.

ani trochu netusim kde je problem... a kdyz sloubce z dadabaze smazu tak se text ve Footeru zase ukaze

#217 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-25 21:33:11

super je to  vyborny  parada   funguje mi  to jen  mam   jeste dotaz nebylo by nejak  mozne jeste  dat  nejaky  i  do  panelu   neco  podobnyho jak je to u PHP fusionu ?

#218 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-25 21:16:26

ano     potrebuju  abych  mel  prehled ktery uzivatel je na webu  online a kterej ne

#219 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-25 21:12:00

ruberninja1    ja nepotrebuju   na servery ja  potrebuju  neco jak je na php fusionu ze to  ukazuje  ktery uzivatel je online a ktery registrovany je Off

#220 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-25 21:11:29

ruberninja1    ja nepotrebuju   na servery ja  potrebuju  neco jak je na php fusionu ze to  ukazuje  ktery uzivatel je online a ktery registrovany je Off

#222 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-25 10:01:17

nevim jestly UDP Portu az tak tomu nerozumim   takze na sunlightu mam   teda  smulu?  škoda  to mě mrzí pokud by to  neslo  wink

#223 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-25 10:01:17

nevim jestly UDP Portu az tak tomu nerozumim   takze na sunlightu mam   teda  smulu?  škoda  to mě mrzí pokud by to  neslo  wink

#224 Re: Ostatní redakční systémy » Online Ofline status » 2013-04-24 21:48:56

zdravíčko
potreboval  bych  pro  system sunlight  user status na web... Googlim jak  splašenej a nic jsem  nenašel tak  prosim  o  pomoc kde ho stáhnu a nebo jestly  by mi ho nekdo  udelal  tohle bych  nezvladl  diky moc

#225 Re: Tvorba webu » Flash mp3 přehravač » 2013-04-20 16:38:36

dobry  vyreseno  nasel  jsem  jinej  lepsi  prehravac  a  ten    mi  jel  hned  i   tak   diky  moc  za  rady smile

Zápatí

Založeno na FluxBB | CZ a SK