Skip to content

Instantly share code, notes, and snippets.

dele

Block or report user

Report or block dele

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7304868
<?php
$action = "signup";
if(isset($_POST['register'])){
if(isset($_POST['username'])){
if($si->validateMinLength($_POST['username'],$_GLOBALS['ACCOUNT']['USERNAME']->MIN) == true && $si->validateMaxLength($_POST['username'],$_GLOBALS['ACCOUNT']['USERNAME']->MAX) == true && $si->validateUsername($_POST['username']) == true){
$sql = "select id from users where username = '".$db->quote_smart($_POST['username'])."'";
$query = $db->query($sql);
$row = $db->fetch_assoc($query);
if(!$row){
$data['username'] = $db->quote_smart(cyr2url($_POST['username']));
You can’t perform that action at this time.