getUser(); $this->id = $user["email"]; $this->name = $user["name"]; $this->setState("info", $user); $this->saveToCookie($duration); } protected function loadIdentityStates($states) { parent::loadIdentityStates($states); $this->loadVariables(); } public function loadVariables() { $info = $this->getState("info"); if ($info === null) { $this->userid = null; $this->lastname = null; $this->email = null; $this->phone = null; } $this->userid = $info["id"]; $this->name = $info["name"]; $this->lastname = $info["lastname"]; $this->email = $info["email"]; $this->phone = $info["phone"]; } public function get() { $this->loadVariables(); return $this; } public static function getCurrentUser() { return Yii::app()->user->get(); } public function getIsGuest() { if ($this->getState('info')===null) { return true; } /* $info = $this->getState("info"); if (!is_array($info) || !isset($info["id"]) || !isset($info["id"]) || !isset($info["name"]) || !isset($info["lastname"]) || !isset($info["email"]) || !isset($info["phone"])) { return true; } */ return false; } public function getOriginalDuration() { $request=Yii::app()->getRequest(); $cookies=$request->getCookies(); $cookie=$cookies->itemAt($this->getStateKeyPrefix()); if($cookie && !empty($cookie->value) && ($data=Yii::app()->getSecurityManager()->validateData($cookie->value))!==false) { $data=@unserialize($data); if(is_array($data) && isset($data[0],$data[1],$data[2],$data[3])) { // data is an array containing id, name, duration, states // so second index is the duration return $data[2]; } } return 0; } public function updateField($field, $value) { $info = $this->getState("info"); if (!isset($info[$field])) { return; } $info[$field] = $value; $this->setState("info", $info); $info = $this->getState("info", $info); if ($info[$field] !== $value) { throw new CException("not saved0"); } $this->loadVariables(); $duration = $this->getOriginalDuration(); $this->saveToCookie($duration); $this->renewCookie(); } } ?> getUser(); $this->id = $user["email"]; $this->name = $user["name"]; $this->setState("info", $user); $this->saveToCookie($duration); } protected function loadIdentityStates($states) { parent::loadIdentityStates($states); $this->loadVariables(); } public function loadVariables() { $info = $this->getState("info"); if ($info === null) { $this->userid = null; $this->lastname = null; $this->email = null; $this->phone = null; } $this->userid = $info["id"]; $this->name = $info["name"]; $this->lastname = $info["lastname"]; $this->email = $info["email"]; $this->phone = $info["phone"]; } public function get() { $this->loadVariables(); return $this; } public static function getCurrentUser() { return Yii::app()->user->get(); } public function getIsGuest() { if ($this->getState('info')===null) { return true; } /* $info = $this->getState("info"); if (!is_array($info) || !isset($info["id"]) || !isset($info["id"]) || !isset($info["name"]) || !isset($info["lastname"]) || !isset($info["email"]) || !isset($info["phone"])) { return true; } */ return false; } public function getOriginalDuration() { $request=Yii::app()->getRequest(); $cookies=$request->getCookies(); $cookie=$cookies->itemAt($this->getStateKeyPrefix()); if($cookie && !empty($cookie->value) && ($data=Yii::app()->getSecurityManager()->validateData($cookie->value))!==false) { $data=@unserialize($data); if(is_array($data) && isset($data[0],$data[1],$data[2],$data[3])) { // data is an array containing id, name, duration, states // so second index is the duration return $data[2]; } } return 0; } public function updateField($field, $value) { $info = $this->getState("info"); if (!isset($info[$field])) { return; } $info[$field] = $value; $this->setState("info", $info); $info = $this->getState("info", $info); if ($info[$field] !== $value) { throw new CException("not saved0"); } $this->loadVariables(); $duration = $this->getOriginalDuration(); $this->saveToCookie($duration); $this->renewCookie(); } } ?> Error

Error

Class "WebUser" not found

/home/xgmexgme/public_html/yii/framework/YiiBase.php(217)

205             elseif($n===4)
206                 $object=new $type($args[1],$args[2],$args[3]);
207             else
208             {
209                 unset($args[0]);
210                 $class=new ReflectionClass($type);
211                 // Note: ReflectionClass::newInstanceArgs() is available for PHP 5.1.3+
212                 // $object=$class->newInstanceArgs($args);
213                 $object=call_user_func_array(array($class,'newInstance'),$args);
214             }
215         }
216         else
217             $object=new $type;
218 
219         foreach($config as $key=>$value)
220             $object->$key=$value;
221 
222         return $object;
223     }
224 
225     /**
226      * Imports a class or a directory.
227      *
228      * Importing a class is like including the corresponding class file.
229      * The main difference is that importing a class is much lighter because it only

Stack Trace

#12
+
–
 /home/xgmexgme/public_html/basitpazar/index.php(13): CApplication->run()
08 defined('YII_DEBUG') or define('YII_DEBUG',true);
09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
11 
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2026-10-29 05:02:05 Apache Yii Framework/1.1.15