T1703271447
This commit is contained in:
@@ -13,6 +13,7 @@
|
|||||||
$name = $_GET['name'];
|
$name = $_GET['name'];
|
||||||
$uid = md5(uniqid(rand(), true));
|
$uid = md5(uniqid(rand(), true));
|
||||||
$database = new Database();
|
$database = new Database();
|
||||||
|
|
||||||
if(preg_match(PATTERN, $name) != 1 or !$name) {
|
if(preg_match(PATTERN, $name) != 1 or !$name) {
|
||||||
$error = 11101;
|
$error = 11101;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -6,12 +6,12 @@
|
|||||||
* Time: 14:07
|
* Time: 14:07
|
||||||
*/
|
*/
|
||||||
|
|
||||||
include_once includes.inc.php;
|
require_once('includes.inc.php');
|
||||||
|
|
||||||
$uid = $_GET['uid'];
|
$uid = $_GET['uid'];
|
||||||
$length = ($_GET['length'] && gettype(+$_GET['length']) == 'integer') ? +$_GET['length'] : 10;
|
$length = ($_GET['length'] && gettype(+$_GET['length']) == 'integer') ? +$_GET['length'] : 10;
|
||||||
$questions_count = Database::query('SELECT COUNT(*) FROM "QUESTIONS"');
|
$database = new Database();
|
||||||
|
|
||||||
|
$questions_count = $database->query('SELECT COUNT(*) FROM "QUESTIONS"');
|
||||||
echo $questions_count;
|
echo $questions_count;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user