require_once './config.php'; function __autoload($class_name) { include "./inc/php/class/class.{$class_name}.php"; } session_start(); header('Content-Type: text/html; charset=utf-8'); //get data $getPostDt = new getpostdt(); $pgType = $getPostDt->getPgtype(@$_POST["viewPage"], @$_GET["viewPage"]); $lg = $getPostDt->getLg(@$_POST["lg"], @$_GET["lg"]); $valid = new validation(); $fDt = $valid->fillarrData(@$_POST["Dt"]); //******************************************************************** $db = new db(); $lgArr = $valid->logPassDt(@$_POST["enter"]["login"], @$_POST["enter"]["password"]); if ($lgArr['check']) { $profiledt = $db->getData($lgArr['login'], $lgArr['password']); $fphoto = $profiledt["fphoto"]; } if ("reg" == $pgType) { if ($fDt['check']) { if ($valid->photo($_FILES["fphoto"])) { $img = new photo($_FILES["fphoto"]); $db->insertDt($fDt, $img->imgBase64); $profiledt = $db->getData(); $fphoto = $img->imgBase64; } } } if ($db->getUid() > 0) {