Leaderboard
Popular Content
Showing content with the highest reputation on 02/14/2012 in all areas
-
Construit ca toate portabilele Maguay, pe suportul oferit de o excelentă platformă barebone de la Clevo, MyWay P1701m vine cu o configuraţie hardware de ultimă generație, ce permite rularea oricăror aplicații, inclusiv cele de design, proiectare 3D care în mod normal necesită mai multe resurse. Sistemul dispune și de o serie de facilități multimedia ce trebuie neapărat menționate, ca de exemplu ecranul Full HD de foarte bună calitate, sistemul audio 5.1 cu subwoofer incorporat în carcasă sau unitatea optică Blu-ray. În plus, faptul că utilizatorul poate alege un procesor mai puternic și diferite configurații de stocare pentru această platformă foarte solidă, face din P1701m o soluție foarte interesantă pentru entuziaștii aflați în căutarea unui sistem portabil foarte puternic și nemulțumiți de ofertele oarecum limitate are celor mai multe branduri cunoscute de pe piață. Puncte forte Maguay MyWay P1701m +sistem de răcire foarte bine pus la punct; +configurație foarte puternică, cu potențial mare de personalizare/upgrade; +display Full HD de calitate foarte bună; +vine pre-instalat cu Office 2010 și ghiduri de utilizare pentru acesta; +sistem audio de înaltă fidelitate; +cititor biometric de amprente. Puncte slabe Maguay MyWay P1701m -placă video Quadro de generație mai veche, fără suport pentru DirectX 11; (update: această configuraţie va fi upgradată cu placa video Nvidia Quadro 5010 cu 4GB VRAM) -adaptor de alimentare de dimensiuni foarte mari; -are o grosime de 42mm şi cântăreşte aproximativ 3.6Kg.2 points
-
Servicii Web Design - http://www.fzones.com/ Platforma folosita Joomla. Componente: JComments si Xmap Site-ul apartine proaspetei firme Fzones Media Design SRL Este un site de prezentare al serviciilor pe care le prestam, eu si inca o persoana. Servicii Oferite: Realizare website, Magazine Virtuale, Bloguri, Comunitati Online etc. Astept pareri, idei, sugestii, critici cu privire la acest site.1 point
-
In momentul in care va decideti sa desfasurati o campanie de link building prin intermediul , este bine sa luati in seama urmatoarele reguli: Link-urile catre siteul dumneavoastra ar trebui sa fie dofollow astfel incat ele sa va ajute la pozitionarile in motoarele de cautare. Daca sint nofollow ele vor fi utile pentru traficul generat si mai putin pentru motoarele de cautare. Cuvintele cheie pe care le folositi in advertoriale trebuie sa fie relevante pentru pagina catre care se trimit linkurile. De aceea e bine sa aveti o planificare prealabila ptr linkurile pe care le veti trimite, fiecare cuvant cheie avand atribuit pagini specifice din siteul promovat. Linkul din advertorial ar trebui sa fie relevant textului caruia ii apartine dar si paginii catre care face legatura. Nu e o regula, dar relevanta ajuta siteurile la a urca la cautari. Cereti realizarea de texte relevante, pozitive, bogate in continut. Indicat ar fi ca aceste advertoriale sa fie scrise de persoane diferite, sa fie pe siteuri diferite si sa trimita linkuri cu cuvinte cheie variate dar relevante. Advertorialele nu trebuie sa apara in aceeasi zi, indicat e ca ele sa apara pe perioade de timp de 2-3 saptamani astfel incat linkurile sa vina natural, in cantitati acceptabile unui motor de cautare. Ideea e ca, 3000 de backlinkuri venite intr-o saptamana clar atrage un semnal de alarma robotilor si evaluatorilor pe care motoarele de cautare le au. Este indicat ca blogurile sa fie pe cat posibil pe IP-uri diferite, din tari diferite dar predominant romanesti. Linkurile de pe conutul englezesc ajuta site-urile la cautari, dar un advertorial in engleza cu link catre un site romanesc poate atrage atentia. Advertorialele ar trebui sa pastreze linkul catre site o perioada lunga de timp, unii bloggeri obisnuiesc sa scoata linkul dupa o perioada de timp. Pentru a identifica eventualele pierderi de linkuri e indicat sa faceti link management. Numai bine !1 point
-
Astazi, de Sfantul Valentin, zi catalogata drept sarbatoare a iubirii, atunci va pot prezenta Bitdefender Relationship Scanner: http://www.relationshipscanner.ro/, o aplicatie web realizata de Standout si Bitdefender. Aceasta este pregatita sa va scaneze relatia de virusi asa cum antivirusul va scaneaza calculatorul. Bineinteles de fapt este vorba de o aplicatie menita sa va amuze, si sa va puna in miscarea buna dispozitie. La final, dupa ce v-ati scanat relatia, veti primi un link catre o pagina de descarcarea pentru BitDefender Total Security 2012, valabil 90 de zile. Sunteti curiosi cum arata o scanare de relatie ? Atunci, vizionati pozele de mai jos:1 point
-
Formular de inregistrare register.php <?php require_once('register_funcs.inc'); if($submit=='Mail confirmation') { $feedback=user_register(); //in every case, successful or not, there will be the feedback $feedback_str="<p class=\"errormess\">$feedback</p>"; } else { //show form for thr first time $feedback_str=''; } //---------------------------------------------------------------- //DISPLAY THE FORM //---------------------------------------------------------------- include_once('header_footer.php'); site_header('Registration'); //superglobals don t work with heredoc $php_self=$_SERVER['PHP_SELF']; $reg_str= <<< EOREGSTR <table cellpadding=0 cellspacing=0 border=0 align=center width=621> <tr> //---------------- //<td rowspan=10> //<img width=15 height=1 src="../images/spacer.gif"></td> //---------------- <td width=606> </td> </tr> <tr> <td> $feedback_str <p class="left"><b>REGISTER</b> <br> Fill out this form and a confirmation email will be sent to you. Once out this click on the link in the email your account will be confirmed and you can begin to contribute to the community.</p> <form action="$php_self" method="POST"> <p class="bold">First name<br> <input type="text" name="first_name" value="$first_name" size="20" maxlength="25"></p> <p class="bold">Last name<br> <input type="text" name="last_name" value="$last_name" size="20" maxlength="25"></p> <p class="bold">Username<br> <input type="text" name="user_name" value="$user_name" size="10" maxlength="25"></p> <p class="bold">Password<br> <input type="password" name="password1" value=" " size="10" maxlength="25"></p> <p class="left"><b>Password</b> (again)<br> <input type="password" name="password2" value=" " size="10" maxlength="25"></p> <p class="left"><b>Email</b> (required for confirmation)<br> <input type="text" name="email" value="$email" size="30" maxlength="50"> </p> <p><input type="submit" name="submit" value="Mail confirmation"> </p> </form> </td> </tr> EOREGSTR; echo $reg_str; site_footer(); ?> fis. register_funcs.inc <?php //a file with the database host, user, password, and selected database include_once("db_vars.inc"); //a string used for md5 encryption. You could move it to a file outside the web tree for more security $supersecert_has_padding="A string that is used to pad out short strings for md5 encryption. "; //this function will only work with superglobal arrays, because i'm not passing in any values or declaring globals function user_register() { global $supersecret_hash_padding; //are all vars present and password match? if(strlen($_POST['user_name'])<=25 && strlen($_POST['password1'])<=25 && ($_POST['password1'] == $_POST['password2']) && strlen($_POST['email'])<=50 && validate_email($_POST['email'])) { //validate username and password if(account_namevalid($_POST['user_name']) || strlen($_POST['password1']>=6)) { $user_name=strtolower($_POST['user_name']); $user_name=trim($user_name); //don't need to escape, because single quotes aren't allowed $email=$_POST['email']; //don't allow duplicate usernames or emails $query=mysql_query($query); if($result && mysql_num_rows($result)>0) { $feedback='ERROR --Username or email address already exists'; return feedback; } else{ $first_name=$_POST['first_name']; $last_name=$_POST['last_name']; $password=md5($_POST['password1']); $user_ip=$_SERVER['REMOTE_ADDR']; //create a new hash to insert into the db and the confirmation email $hash=md5($email.$supersecret_hash_padding); $query="INSERT INTO user (user_name, first_name, last_name, password, email, remote_addr, confirm_hash, is_confirmed, date_created) VALUES ('$user_name', '$first_name', '$last_name', '$password', '$email', '$user_ip', '$hash', '0', NOW())"; $result=mysql_query($query); if(!$result) { $feedback='ERROR--Database error'; return $feedback; } else{ //send the confirmation email $encoded_email=urlencode($_POST['email']); $mail_body= <<< EOMAILBODY Tahnk you for registering at Example.com Click this link to confirm your registration: http://localhost/confirm.php?hash=$has$email=$encoded_email Once you see a confirmation message, you will be logged into Example.com EOMAILBODY; mail($email, 'Example.com Registration Confirmation', $mail_body, 'From: noreply@example.com'); //Give a successful registration message $feddback='YOU HAVE SUCCESSFULLY REGISTERED. You will receive a confirmation email soon'; return $feedback; } } } else { $feedback='ERROR--Username or password is invalid'; return $feedback; } } else{ $feedback='ERROR--please fill in all fields correctly'; return $feedback; } } function account_namevalid() { //parameter for use with strspan $span_str="abcdefghijklmnopqrstuvxwyz" . "ABCDEFGHIJKLMNOPQRSTUVXWYZ0123456789-"; //must have at least one character if(strspn($_POST['user_name'], $span_str)==0) { return false; } //must contain all legal characters if(strspn($_POST['user_name'], $span_str)!=strlen($name)) { return false; } //min and max length if(strlen($_POST['user_name'])<5) { return false; } if(strlen($_POST['user_name'])>25) { return false; } //illegales names if(eregi("^((root)|(bin)|(daemon)|(adm)|(lp)|(sync)|(shutdown)|(halt)|(mail)|(news)|(uucp)|(operator)|(games)|(mysql)|(httpd)|(nobody)|(dummy)|(www)|(cvs)|(shell)|(ftp)|(irc)|(debian)|(ns)|(download))$", $_POST['user_name'])) { return false; } if(eregi("^(anoncvs_)", $_POST['user_name'])) { return false; } return true; } function validate_email() { return (ereg('^[=!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'. '@'. '[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.' . '[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $_POST['email'])); } function user_confirm() { //this function will only work with the superglobal arrays, because i'm not passing in any values or declaring globals global $supersecret_hash_padding; //verify that they didn't tamper with the email address $new_hash=md5($_GET['email'].$supersecret_hash_padding); if($new_hash && ($new_hash==$_GET['hash'])) { $query="SELECT user_name FROM user WHERE confirm_hash='$new_hash'"; $result=mysql_query($query); if(!result || mysql_num_rows($result)<1) { $feedback='ERROR--Hash not found'; return $feedback; } else{ //confirm the email and set accout to active $email=$_GET['email']; $hash=$_GET['hash']; $query="UPDATE user SET email='$email', is_confirmes='1' WHERE confirm_hash='$hash'"; $result=mysql_query($query); return 1; } } else { $feedback='ERROR--Values do not match'; return $feedback; } } ?>1 point
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Validating User Input.</title> <style type="text/css"> <!-- label,input { display: block; width: 150px; float: left; margin-bottom: 10px; } label { text-align: right; width: 75px; padding-right: 20px; } br { clear: left; } --> </style> </head> <body> <h3>* denotes required field!</h3> <form action="<?php echo $_SERVER['PHP_SELF'];?>" method="post"> <p> <label for="name">Name</label> <input id="name" type="text" name="userName" maxlength="25" />*<br /> <label for="address">Address</label> <input id="address" type="text" name="userAddress" maxlength="100" /><br /> <label for="city">City</label> <input id="city" type="text" name="userCity" maxlength="25" /><br /> <label for="zip">Zip</label> <input id="zip" type="text" name="userZip" maxlength="5" /><br /> <label for="email">Email</label> <input id="email" type="text" name="userEmail" maxlength="50" />*<br /> <label for="submit">Submit</label> <input id="submit" type="submit" value="Mail It!" /><br /> </p> </form> <?php /** * This function can be used to check the sanity of variables * * @access private * * @param string $type The type of variable can be bool, float, numeric, string, array, or object * @param string $string The variable name you would like to check * @param string $length The maximum length of the variable * * return bool */ function sanityCheck($string, $type, $length){ // assign the type $type = 'is_'.$type; if(!$type($string)) { return FALSE; } // now we see if there is anything in the string elseif(empty($string)) { return FALSE; } // then we check how long the string is elseif(strlen($string) > $length) { return FALSE; } else { // if all is well, we return TRUE return TRUE; } } /** * This function if the $_POST vars are set * * @access private * * return bool */ function checkSet(){ return isset($_POST['userName'], $_POST['userAddress'], $_POST['userCity'], $_POST['userZip'], $_POST['userEmail']); } /** * This function checks a number is greater than zero * and exactly $length digits. returns TRUE on success. * * @access private * * @param int $num The number to check * @param int $length The number of digits in the number * * return bool */ function checkNumber($num, $length){ if($num > 0 && strlen($num) == $length) { return TRUE; } } /** * This function checks if an email address in a valid format * * @access private * * @param string $email The email address to check * * return bool */ function checkEmail($email){ return preg_match('/^\S+@[\w\d.-]{2,}\.[\w]{2,6}$/iU', $email) ? TRUE : FALSE; } // check all our variables are set if(checkSet() != FALSE) { // check the POST variable userName is sane, and is not empty if(empty($_POST['userName'])==FALSE && sanityCheck($_POST['userName'], 'string', 25) != FALSE) { //If all is well we can assign the value of POST field to a variable $userName = $_POST['userName']; } else { // if all is not well, we echo an error and exit the script echo 'Username is not set'; exit(); } // here we test for the sanity of userAddress, we dont need to stop the // the script if it is empty as it is not a required field. if(sanityCheck($_POST['userAddress'], 'string', 100) != FALSE) { // if all is well we assign the userAddress to a variable $userAddress = $_POST['userAddress']; } else { // if all is not well, we simply give the userAddress a blank value $userAddress = ''; } // here we test for the sanity of userCity, we dont need to stop the // the script if it is empty as it is not a required field. if(sanityCheck($_POST['userCity'], 'string', 25) != FALSE) { // again we assign the POSTed value to a variable $userCity = $_POST['userCity']; } else { // or give the variable a blank value $userCity = ''; } // check the sanity of the number and that it is greater than zero and 5 digits long if(sanityCheck($_POST['userZip'], 'numeric', 5) != FALSE && checkNumber($_POST['userZip'], 5) == TRUE) { // if the number is valid, we assign it to a variable $userZip = $_POST['userZip']; } else { // or give the variable a blank value $userZip=''; } // check the sanity of the userEmail sent from the form if(sanityCheck($_POST['userEmail'], 'string', 5) != FALSE && checkEmail($_POST['userEmail']) != FALSE) { // if the checks are ok for the email we assign the email address to a variable $userEmail = $_POST['userEmail']; } else { // if all is not well we echo an error message echo 'Invalid Email Address Supplied'; // and exit the script exit(); } // Connect to the MySQL $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); if (!$link) { die('Not connected : ' . mysql_error()); } // select test as the current db $db_selected = mysql_select_db('test', $link); if (!$db_selected) { die ("Database not selected : " . mysql_error()); } // Build our query here and check each variable with mysql_real_escape_string() $query = sprintf("INSERT INTO people (userName, userAddress, userCity, userZip, userEmail) VALUES( '%s', '%s','%s','%s','%s')", mysql_real_escape_string($userName), mysql_real_escape_string($userAddress), mysql_real_escape_string($userCity), mysql_real_escape_string($userZip), mysql_real_escape_string($userEmail)); // run the query if(!mysql_query($query)) { echo 'Query failed '.mysql_error(); exit(); } else { // if all is well we mail off a little thank you email. We know it is // safe to do so because we have validated the email address. $subject = 'Submission'; $msg= 'Thank you for submitting your information'; if(!mail($userEmail,$subject,$msg, "From: $userEmail\nReply-To: $userEmail\nX-Mailer: PHP/" . phpversion())) { echo 'Unable to send confirmation mail'; } else { echo 'Thank you for your submission, a confirmation email has bee sent to '.$userEmail; } } } else { // this will be the default message if the form accessed without POSTing echo '<p>please fill in the form above</p>'; } ?> </body> </html> ptr cele doua checkbox-uri faci la fel ca pentru validarea numelui...inlocuiesti doar campurile.1 point
-
Cateva cuvinte despre acest forum intr-un advertorial http://www.fzones.com/blog/12-pc-troubleshooting-forum-it?team=1 Am adaugat un modul pentru comentarii, modul ce functioneaza in sectiunea BLOG. Astfel cei care doresc sa lase un comentariu pot face acest lucru cu ajutorul contului de Facebook, Twitter, Yahoo, Hotmail etc.1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point