=48 &&ord($string[$i])<=57) && // 0-9 !(ord($string[$i])>=65 && ord($string[$i])<=90) && // A-Z !(ord($string[$i])>=97 && ord($string[$i])<=122) && // a-z !(ord($string[$i])==45) && // - !(ord($string[$i])==95) // _ ) { return false; } } return true; } function karakterekjelszohoz($string) { for ($i=0; $i=48 &&ord($string[$i])<=57) && // 0-9 !(ord($string[$i])>=65 && ord($string[$i])<=90) && // A-Z !(ord($string[$i])>=97 && ord($string[$i])<=122) && // a-z !(ord($string[$i])>=35 && ord($string[$i])<=38) && // # $ & !(ord($string[$i])>=42 && ord($string[$i])<=47) && // * + , - . / !(ord($string[$i])==95) && // _ !(ord($string[$i])==33) && // ! !(ord($string[$i])==64) // @ ) { return false; } } return true; } // random cucc function veletlenaz09($length) { $key_chars = 'abcdefghijklmnopqrstuvwxyz0123456789'; $rand_max = strlen($key_chars) - 1; for ($i = 0; $i < $length; $i++) { $rand_key[] = $key_chars[rand(0, $rand_max)]; } return implode('', $rand_key); } // visszaadja a fajlnevet meg a kiterjesztest function nevkit($string) { $fajl['nev']=substr($string,0,strrpos($string,".")); $fajl['kit']=substr($string,(strrpos($string,".")+1)); return $fajl; } // masodpercek meg a microtime function microtime_float() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } ?>
Warning: mysql_connect(): Unknown MySQL server host 'DB_HOST' (2) in /home/czinegem/managerpublishing.hu/html/lib/adodb/drivers/adodb-mysql.inc.php on line 348
Execute('SELECT Bal, Jobb FROM menufa WHERE Id='.$id); if ( $row = $result->FetchRow() ) { // start with an empty $right stack $right = array(); // now, retrieve all descendants of the $root node $query = 'SELECT menufa.Id, Bal, Jobb, menufaadatok.* FROM menufa LEFT JOIN menufaadatok ON menufa.Id=menufaadatok.Id WHERE Bal BETWEEN '.$row['Bal'].' AND '.$row['Jobb'].' ORDER BY Bal ASC, rang'; // $query = 'SELECT id, Bal, Jobb FROM menufa WHERE Bal BETWEEN '.$row['Bal'].' AND '.$row['Jobb'].' ORDER BY Bal ASC'; $result = $db->Execute($query); // display each row $i=0; while ($row = $result->FetchRow()) { // only check stack if there is one if (count($right)>0) { // check if we should remove a node from the stack while ($right[count($right)-1]<$row['Jobb']) { array_pop($right); } } // display indented node title if ($i>0) { $output[$i]=$row; $output[$i]['mely']=count($right)-1; } $i++; // $output.=str_repeat($indent,count($right)).$row['Id'].$newLine; // add this node to the stack $right[] = $row['Jobb']; } } return $output; } /* Retrieves the tree in an array. Each depth's 0 index is the item and the others are the descendants of that item. */ function retrieve2array($id) { global $db; $arr = array(); // retrieve the left and right value of the $root node $result = $db->Execute('SELECT Bal, Jobb FROM menufa WHERE Id='.$id); if($row = $result->FetchRow()) { // start with an empty $right stack $right = array(); // now, retrieve all descendants of the $root node $query = 'SELECT * FROM menufa LEFT JOIN menufaadatok ON menufa.Id=menufaadatok.Id WHERE Bal BETWEEN '.$row['Bal'].' AND '.$row['Jobb'].' ORDER BY Bal ASC'; $result = $db->Execute($query); // add each row to the array while ($row = $result->FetchRow()) { // only check stack if there is one if (count($right)>0) { // check if we should remove a node from the stack while ($right[count($right)-1]<$row['Jobb']) { array_pop($right); } } // add the new element to the array _addToArray($arr, count($right), $row); // add this node to the stack $right[] = $row['Jobb']; } return $arr[0]; } return $arr; } /* Helper function Creates a new item in a new element of the array at $depth depth, and sets it to $item */ function _addToArray(&$array, $depth, $item) { // prepare a temporary pointer for the array walk $arr=&$array; // go threw the array and set pointer to the last element which is not an empty array $i=0; while ( $i<$depth && ($c=count($arr)) ) { $arr=&$arr[$c-1]; $i++; } // create a new array at the end $arr[]=array(); // add a new element to that array $arr[count($arr)-1][]=$item; } function delNode($id) { global $db; global $hibak; if($id) { $eredm_menu = $db->GetRow('SELECT bal, jobb FROM menufa WHERE id='.$id); //row found detects if it is a leaf if($eredm_menu['bal']+1==$eredm_menu['jobb']) { $eredm = $db->Execute('UPDATE menufa SET jobb=jobb-2 WHERE jobb>'.($eredm_menu['jobb']-1)); $eredm = $db->Execute('UPDATE menufa SET bal=bal-2 WHERE bal>'.($eredm_menu['jobb']-1)); $eredm = $db->Execute('DELETE FROM menufa WHERE id='.$id); return 1; }else{ $hibak[]="Deletion of a menu that has child menus is not possible! Please delete all child menus, before the deletion!;"; return -1; } }else{ return -1; } } ?>
Warning: mkdir(): Permission denied in /home/czinegem/managerpublishing.hu/html/lib/adodb/adodb.inc.php on line 1564

Warning: mkdir(): Permission denied in /home/czinegem/managerpublishing.hu/html/lib/adodb/adodb.inc.php on line 1564

Warning: mkdir(): Permission denied in /home/czinegem/managerpublishing.hu/html/lib/adodb/adodb.inc.php on line 1564

Fatal error: Call to undefined function retrieve() in /home/czinegem/managerpublishing.hu/html/inc/front/menu.php on line 3