/home/www/html/tv.3g.cnfol.com/phonenet/protected/components/mysqlclass.php(4)
01 <?php 02 class dbconn { 03 var $conn = 0; 04 function dbconn($dbhost,$dbuser,$dbpw,$dbname,$charset=''){ $this->conn = mysql_connect($dbhost,$dbuser,$dbpw); 05 !$this->conn && $this->halt("Connect to MySQL failed"); 06 $serverinfo = mysql_get_server_info($this->conn); 07 if ($serverinfo > '4.1' && $charset) { 08 mysql_query("SET character_set_connection=".$charset.",character_set_results=".$charset.",character_set_client=binary",$this->conn); 09 } 10 if ($serverinfo > '5.0') { 11 mysql_query("SET sql_mode=''",$this->conn); 12 } 13 if ($dbname && !@mysql_select_db($dbname,$this->conn)) { 14 $this->halt('Cannot use database'); 15 } 16 }
#0 |
+
–
/home/www/html/tv.3g.cnfol.com/phonenet/protected/components/mysqlclass.php(4): mysql_connect("10.2.4.228", "3g_cnfol", "pho32!8n43x") 1 <?php 2 class dbconn { 3 var $conn = 0; 4 function dbconn($dbhost,$dbuser,$dbpw,$dbname,$charset=''){ $this->conn = mysql_connect($dbhost,$dbuser,$dbpw); 5 !$this->conn && $this->halt("Connect to MySQL failed"); 6 $serverinfo = mysql_get_server_info($this->conn); 7 if ($serverinfo > '4.1' && $charset) { 8 mysql_query("SET character_set_connection=".$charset.",character_set_results=".$charset.",character_set_client=binary",$this->conn); 9 } |
#1 |
+
–
/home/www/html/tv.3g.cnfol.com/phonenet/protected/components/comment.php(24): dbconn->dbconn("10.2.4.228", "3g_cnfol", "pho32!8n43x", "fol_review", ...) 19 } 20 //comment list 21 public function review(array $params){ 22 //$link = new dbconn('10.1.1.196','3g_cnfol','pho32!8n43x','fol_review','utf8'); 23 //$link = new dbconn('10.1.4.37','3g_cnfol','pho32!8n43x','fol_review','utf8'); 24 $link = new dbconn('10.2.4.228','3g_cnfol','pho32!8n43x','fol_review','utf8'); 25 $record = (int)addslashes($params['record']) ? (int)addslashes($params['record']) : '4'; 26 $page = 1; 27 $contid = addslashes($params['contid']); 28 //$source = addslashes($params['source']) ? addslashes($params['source']) : '3g'; 29 $source = 'cms'; |
#2 |
+
–
/home/www/html/tv.3g.cnfol.com/phonenet/protected/controllers/ArticleController.php(157): Comment->review(array("contid" => "24302064", "usrid" => null, "record" => "", "source" => "", ...)) 152 $id = $_GET['newsid']; 153 $title = $_GET['newstitle']; 154 $ch = $_GET['channel']; 155 $userid = $_COOKIE['cookie']['passport']['userId']; 156 $params = array('contid' => $id, 'usrid' => $userid, 'record' => $num, 'source' => '', 'start' => '', 'end' => '', 'all' => 'all'); 157 $commentarr = comment::review($params); 158 if ($commentarr['result'] == 'N') { 159 $commentarr = array(); 160 } 161 $this->render("comment", array('channel' => $ch, 'id' => $id, 'title' => $title, 'pln' => $num, 'pl' => $commentarr)); 162 } |
#3 |
+
–
/home/www/html/tv.3g.cnfol.com/framework/web/actions/CInlineAction.php(50): ArticleController->actioncommentList() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#4 |
+
–
/home/www/html/tv.3g.cnfol.com/framework/web/CController.php(309): CInlineAction->runWithParams(array("r" => "Article/commentList", "num" => "", "newsid" => "24302064", "newstitle" => "银行不玩了!赵薇正式失吞万家文化控股权", ...)) 304 { 305 $priorAction=$this->_action; 306 $this->_action=$action; 307 if($this->beforeAction($action)) 308 { 309 if($action->runWithParams($this->getActionParams())===false) 310 $this->invalidActionParams($action); 311 else 312 $this->afterAction($action); 313 } 314 $this->_action=$priorAction; |
#5 |
+
–
/home/www/html/tv.3g.cnfol.com/framework/web/CController.php(287): CController->runAction(CInlineAction) 282 * @see runAction 283 */ 284 public function runActionWithFilters($action,$filters) 285 { 286 if(empty($filters)) 287 $this->runAction($action); 288 else 289 { 290 $priorAction=$this->_action; 291 $this->_action=$action; 292 CFilterChain::create($this,$action,$filters)->run(); |
#6 |
+
–
/home/www/html/tv.3g.cnfol.com/framework/web/CController.php(266): CController->runActionWithFilters(CInlineAction, array()) 261 { 262 if(($parent=$this->getModule())===null) 263 $parent=Yii::app(); 264 if($parent->beforeControllerAction($this,$action)) 265 { 266 $this->runActionWithFilters($action,$this->filters()); 267 $parent->afterControllerAction($this,$action); 268 } 269 } 270 else 271 $this->missingAction($actionID); |
#7 |
+
–
/home/www/html/tv.3g.cnfol.com/framework/web/CWebApplication.php(276): CController->run("commentList") 271 { 272 list($controller,$actionID)=$ca; 273 $oldController=$this->_controller; 274 $this->_controller=$controller; 275 $controller->init(); 276 $controller->run($actionID); 277 $this->_controller=$oldController; 278 } 279 else 280 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 281 array('{route}'=>$route===''?$this->defaultController:$route))); |
#8 |
+
–
/home/www/html/tv.3g.cnfol.com/framework/web/CWebApplication.php(135): CWebApplication->runController("Article/commentList") 130 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 131 $_GET[$name]=$value; 132 } 133 else 134 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 135 $this->runController($route); 136 } 137 138 /** 139 * Registers the core application components. 140 * This method overrides the parent implementation by registering additional core components. |
#9 |
+
–
/home/www/html/tv.3g.cnfol.com/framework/base/CApplication.php(162): CWebApplication->processRequest() 157 */ 158 public function run() 159 { 160 if($this->hasEventHandler('onBeginRequest')) 161 $this->onBeginRequest(new CEvent($this)); 162 $this->processRequest(); 163 if($this->hasEventHandler('onEndRequest')) 164 $this->onEndRequest(new CEvent($this)); 165 } 166 167 /** |
#10 |
+
–
/home/www/html/tv.3g.cnfol.com/phonenet/index.php(48): CApplication->run() 43 } 44 45 } 46 47 require_once($yii); 48 Yii::createWebApplication($config)->run(); |