Advertisement
dr_death_72

Untitled

Aug 13th, 2012
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 7.85 KB | None | 0 0
  1. PHP warning
  2.  
  3.  session_regenerate_id() [<a href='function.session-regenerate-id'>function.session-regenerate-id</a>]: Cannot regenerate session id - headers already sent
  4.  
  5. ...\yii\framework\web\CHttpSession.php(182)
  6. 170     {
  7. 171         session_id($value);
  8. 172     }
  9. 173
  10. 174     /**
  11. 175      * Updates the current session id with a newly generated one .
  12. 176      * Please refer to {@link http://php.net/session_regenerate_id} for more details.
  13. 177      * @param boolean $deleteOldSession Whether to delete the old associated session file or not.
  14. 178      * @since 1.1.8
  15. 179      */
  16. 180     public function regenerateID($deleteOldSession=false)
  17. 181     {
  18. 182         session_regenerate_id($deleteOldSession);
  19. 183     }
  20. 184
  21. 185     /**
  22. 186      * @return string the current session name
  23. 187      */
  24. 188     public function getSessionName()
  25. 189     {
  26. 190         return session_name();
  27. 191     }
  28. 192
  29. 193     /**
  30. 194      * @param string $value the session name for the current session, must be an alphanumeric string, defaults to PHPSESSID
  31. Stack Trace #0  –  ...\yii\framework\web\CHttpSession.php(182): session_regenerate_id(true)
  32. 177      * @param boolean $deleteOldSession Whether to delete the old associated session file or not.
  33. 178      * @since 1.1.8
  34. 179      */
  35. 180     public function regenerateID($deleteOldSession=false)
  36. 181     {
  37. 182         session_regenerate_id($deleteOldSession);
  38. 183     }
  39. 184
  40. 185     /**
  41. 186      * @return string the current session name
  42. 187      */
  43.  #1     –  ...\yii\framework\web\auth\CWebUser.php(700): CHttpSession->regenerateID(true)
  44. 695      * @param string $name the display name for the user
  45. 696      * @param array $states identity states
  46. 697      */
  47. 698     protected function changeIdentity($id,$name,$states)
  48. 699     {
  49. 700         Yii::app()->getSession()->regenerateID(true);
  50. 701         $this->setId($id);
  51. 702         $this->setName($name);
  52. 703         $this->loadIdentityStates($states);
  53. 704     }
  54. 705
  55.  #2     –  ...\yii\framework\web\auth\CWebUser.php(451): CWebUser->changeIdentity("1", "Dr.Death", array())
  56. 446             if(is_array($data) && isset($data[0],$data[1],$data[2],$data[3]))
  57. 447             {
  58. 448                 list($id,$name,$duration,$states)=$data;
  59. 449                 if($this->beforeLogin($id,$states,true))
  60. 450                 {
  61. 451                     $this->changeIdentity($id,$name,$states);
  62. 452                     if($this->autoRenewCookie)
  63. 453                     {
  64. 454                         $cookie->expire=time()+$duration;
  65. 455                         $request->getCookies()->add($cookie->name,$cookie);
  66. 456                     }
  67.  #3     –  ...\yii\framework\web\auth\CWebUser.php(196): CWebUser->restoreFromCookie()
  68. 191     public function init()
  69. 192     {
  70. 193         parent::init();
  71. 194         Yii::app()->getSession()->open();
  72. 195         if($this->getIsGuest() && $this->allowAutoLogin)
  73. 196             $this->restoreFromCookie();
  74. 197         else if($this->autoRenewCookie && $this->allowAutoLogin)
  75. 198             $this->renewCookie();
  76. 199         if($this->autoUpdateFlash)
  77. 200             $this->updateFlash();
  78. 201
  79.  #4     –  ...\yii\framework\base\CModule.php(388): CWebUser->init()
  80. 383             if(!isset($config['enabled']) || $config['enabled'])
  81. 384             {
  82. 385                 Yii::trace("Loading \"$id\" application component",'system.CModule');
  83. 386                 unset($config['enabled']);
  84. 387                 $component=Yii::createComponent($config);
  85. 388                 $component->init();
  86. 389                 return $this->_components[$id]=$component;
  87. 390             }
  88. 391         }
  89. 392     }
  90. 393
  91.  #5     –  ...\yii\framework\base\CModule.php(104): CModule->getComponent("user")
  92. 099      * @return mixed the named property value
  93. 100      */
  94. 101     public function __get($name)
  95. 102     {
  96. 103         if($this->hasComponent($name))
  97. 104             return $this->getComponent($name);
  98. 105         else
  99. 106             return parent::__get($name);
  100. 107     }
  101. 108
  102. 109     /**
  103.  #6     –  ...\protected\controllers\CronController.php(6): CModule->__get("user")
  104. 01 <?
  105. 02
  106. 03 class CronController extends Controller {
  107. 04     protected function beforeAction($action) {
  108. 05         // check key
  109. 06         if(Yii::app()->user->isGuest) {
  110. 07             $sKey = Yii::app()->input->get('key');
  111. 08             if(!$sKey or $sKey != Yii::app()->params['secretKey']) {
  112. 09                 throw new CHttpException(404);
  113. 10             }
  114. 11         }
  115.  #7     –  ...\yii\framework\web\CController.php(307): CronController->beforeAction(CInlineAction)
  116. 302      */
  117. 303     public function runAction($action)
  118. 304     {
  119. 305         $priorAction=$this->_action;
  120. 306         $this->_action=$action;
  121. 307         if($this->beforeAction($action))
  122. 308         {
  123. 309             if($action->runWithParams($this->getActionParams())===false)
  124. 310                 $this->invalidActionParams($action);
  125. 311             else
  126. 312                 $this->afterAction($action);
  127.  #8     –  ...\yii\framework\web\CController.php(287): CController->runAction(CInlineAction)
  128. 282      * @see runAction
  129. 283      */
  130. 284     public function runActionWithFilters($action,$filters)
  131. 285     {
  132. 286         if(empty($filters))
  133. 287             $this->runAction($action);
  134. 288         else
  135. 289         {
  136. 290             $priorAction=$this->_action;
  137. 291             $this->_action=$action;
  138. 292             CFilterChain::create($this,$action,$filters)->run();
  139.  #9     –  ...\yii\framework\web\CController.php(266): CController->runActionWithFilters(CInlineAction, array())
  140. 261         {
  141. 262             if(($parent=$this->getModule())===null)
  142. 263                 $parent=Yii::app();
  143. 264             if($parent->beforeControllerAction($this,$action))
  144. 265             {
  145. 266                 $this->runActionWithFilters($action,$this->filters());
  146. 267                 $parent->afterControllerAction($this,$action);
  147. 268             }
  148. 269         }
  149. 270         else
  150. 271             $this->missingAction($actionID);
  151.  #10    –  ...\yii\framework\web\CWebApplication.php(283): CController->run("ParseSova72Ru")
  152. 278         {
  153. 279             list($controller,$actionID)=$ca;
  154. 280             $oldController=$this->_controller;
  155. 281             $this->_controller=$controller;
  156. 282             $controller->init();
  157. 283             $controller->run($actionID);
  158. 284             $this->_controller=$oldController;
  159. 285         }
  160. 286         else
  161. 287             throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".',
  162. 288                 array('{route}'=>$route===''?$this->defaultController:$route)));
  163.  #11    –  ...\yii\framework\web\CWebApplication.php(142): CWebApplication->runController("cron/ParseSova72Ru")
  164. 137             foreach(array_splice($this->catchAllRequest,1) as $name=>$value)
  165. 138                 $_GET[$name]=$value;
  166. 139         }
  167. 140         else
  168. 141             $route=$this->getUrlManager()->parseUrl($this->getRequest());
  169. 142         $this->runController($route);
  170. 143     }
  171. 144
  172. 145     /**
  173. 146      * Registers the core application components.
  174. 147      * This method overrides the parent implementation by registering additional core components.
  175.  #12    –  ...\yii\framework\base\CApplication.php(162): CWebApplication->processRequest()
  176. 157      */
  177. 158     public function run()
  178. 159     {
  179. 160         if($this->hasEventHandler('onBeginRequest'))
  180. 161             $this->onBeginRequest(new CEvent($this));
  181. 162         $this->processRequest();
  182. 163         if($this->hasEventHandler('onEndRequest'))
  183. 164             $this->onEndRequest(new CEvent($this));
  184. 165     }
  185. 166
  186. 167     /**
  187.  #13    –  ...\index.php(22): CApplication->run()
  188. 17 }
  189. 18
  190. 19 $yii = dirname(__FILE__) . '/yii/framework/yii.php';
  191. 20 require_once(dirname(__FILE__) . '/protected/include/functions.php');
  192. 21 require_once($yii);
  193. 22 Yii::createWebApplication($config)->run();
  194. 23 ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement