session_start(); //script pentru issuu.com function rplsql($text) { $text=mysql_real_escape_string($text); return $text; } global $segment; $segment=explode("/",$_GET['var1']); //include 'connect.php'; //mysql_set_charset('utf8'); include 'config.php'; include 'classes/rpl.php'; include 'classes/diverse.php'; set_time_limit(0); // put full path to Smarty.class.php require('template/Smarty/libs/Smarty.class.php'); $smarty = new Smarty(); $smarty->template_dir = 'template/templates'; $smarty->compile_dir = 'template/templates_c'; $smarty->cache_dir = 'template/cache'; $smarty->config_dir = 'template/configurari'; $tip=$segment[0]; $idp=$segment[1]; $dir=$config_site_url; $dirlang=$dir; if ($_POST['step']!='aplica' and $tip!='success') $formular.='
'; else { $err=0; if (strlen($_POST['nume'])<5) { $stylenume=' style="border:1px solid red"'; $err=1;} if (strlen($_POST['varsta'])<2) { $stylevarsta=' style="border:1px solid red"'; $err=1;} if (strlen($_POST['email'])<5) { $styleemail=' style="border:1px solid red"'; $err=1;} if (strlen($_POST['telefon'])<10) { $styletelefon=' style="border:1px solid red"'; $err=1;} if ($err==1) $formular.=' '; if ($err==0) { $formular.='Inscriere noua '.date("Y-m-d H:i:s").'
| Nume | '.$_POST['nume'].' |
| Varsta | '.$_POST['varsta'].' |
| '.$_POST['email'].' | |
| Telefon | '.$_POST['telefon'].' |