ljevijs Posted March 25, 2008 Report Share Posted March 25, 2008 (edited) Tatad lieta taada ka nevaru apvienot savu welapu ar servera monitoru Itka uztaisiju jaunu paneli kur to ievietot ,bet kad rakstu taa kodu/scriptu vai sazin ,ka vinju tur sauc izmet man eroru! Shis ir panelis Kads vareetu pateikt kur tiehsi jaraksta? :) Pashlaik status man ir ievietots atseviskha linka kad uz to uzspiezh atveras pavisam cita lapa ar monitoru vidu un peleku fonu. aa un veel man liekas ka es nerakstu pareizo nemu kodu visu kas ir rkastit monitors/index.php vai tasi r pareizi? Edited March 25, 2008 by ljevijs Link to comment Share on other sites More sharing options...
Aleksejs Posted March 25, 2008 Report Share Posted March 25, 2008 un kādu erroru izmet ir iespējams uzzināt? vai arī par atminēšanu būs īpaša balva? ;) Link to comment Share on other sites More sharing options...
ljevijs Posted March 25, 2008 Author Report Share Posted March 25, 2008 (edited) es veelejos uzzinat vai vispar rakstu pareizo, un kur tieshi vinsh jaraksta cik sapratu tad content vieta. <?php error_reporting(E_ALL & !E_NOTICE); $server = array(); include_once("config.php"); include_once("class_PQ.php"); include_once("xtemplate.php"); foreach($server as $conf){ unset($pq,$pqinfo,$tpl); $pq = PQ::create($conf); //$conf is a array or string if($debug){ $pq->DEBUG =1; echo "<code><pre>"; } $pqinfo = $pq->query(array('info','rules','players')); if(!@$pqinfo['ping']) $pqinfo['timeout'] =1; else $pqinfo['timeout'] = 0; if($debug){ echo "</pre></code>"; } if(is_readable($conf['template'])) { $tpl = new XTemplate($conf['template']); $tpl->assign($conf); $tpl->assign($pqinfo); if($pqinfo['timeout']) { $tpl->parse("MAIN.TIMEOUT"); } else { //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// foreach($pqinfo['players'] as $plr) { unset($player);//make sure w will not get values from previous row $player['player_name'] = $plr['name']; $player['player_id'] = $plr['id']; $player['player_kills'] = $plr['kills']; $player['player_time'] = $plr['onlinetime']; //seconds $player['player_time_min'] = date("H:i:s",$plr['onlinetime']-3600); //seconds, need to fix it $tpl->assign($player); $tpl->parse("MAIN.STATUS.PLAYERS.PLAYER"); } $tpl->parse("MAIN.STATUS.PLAYERS"); //////////////////////////////////////////////////////////////////////////// $tpl->parse("MAIN.STATUS"); } if($showall || $debug) // for debug mode and also getting all available values { echo "<code><pre>"; print_r($pqinfo); echo "</pre></code>"; } $tpl->parse("MAIN"); $tpl->out("MAIN"); } else { echo "ERROR: Template file ".$conf['template']." - failed to open file, check permissions or check if file exist"; } } ?> shis ir kods ko lieku pareizak sakot index.php faila saturs Edited March 25, 2008 by ljevijs Link to comment Share on other sites More sharing options...
andrisp Posted March 25, 2008 Report Share Posted March 25, 2008 Mājienu nesaprati, ka error arī obligāti vajag iepostēt, ja lūdz palīdzību ? Link to comment Share on other sites More sharing options...
ljevijs Posted March 25, 2008 Author Report Share Posted March 25, 2008 Mājienu nesaprati, ka error arī obligāti vajag iepostēt, ja lūdz palīdzību ? Jaa, bet es domaju , ka vaina ir kodaa, jo shaubos , ka tas ir pareizs . Link to comment Share on other sites More sharing options...
Aleksejs Posted March 25, 2008 Report Share Posted March 25, 2008 Ok, Tu esi uzvarējis, es izstājos no spēles. :) Lai veicas! Link to comment Share on other sites More sharing options...
ljevijs Posted March 25, 2008 Author Report Share Posted March 25, 2008 (edited) Es vaicaju peec plaiidzibas! Neviens nevar pateikt vai tas ir istais kods? Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in C:\AppServ\www\administration\panel_editor.php(111) : eval()'d code on line 5 luuk erors kad ierekastuun uzpiezhu preview to index.php saturu content vietaa Edited March 25, 2008 by ljevijs Link to comment Share on other sites More sharing options...
Aleksejs Posted March 25, 2008 Report Share Posted March 25, 2008 Nav ielikts semikols 4 rindiņā? Es vaicaju peec plaiidzibas! Nekliedz! Ja gribi, lai kāds vēlētos palīdzēt, ir ļooooooti vēlams sadarboties un atbildēt uz uzdotajiem jautājumiem. Ja jau jautā, tātad šī informācija ir vajadzīga, lai varētu risināt šo problēmu. Link to comment Share on other sites More sharing options...
ljevijs Posted March 25, 2008 Author Report Share Posted March 25, 2008 Nav ielikts semikols 4 rindiņā? Nekliedz! Ja gribi, lai kāds vēlētos palīdzēt, ir ļooooooti vēlams sadarboties un atbildēt uz uzdotajiem jautājumiem. Ja jau jautā, tātad šī informācija ir vajadzīga, lai varētu risināt šo problēmu. zinu, paldies, bet vai tu nevaretu ludzu apskatiities kodu pashu vai tas ir pareizs? Link to comment Share on other sites More sharing options...
Aleksejs Posted March 25, 2008 Report Share Posted March 25, 2008 Kodu apskatījos, neko īpaši nepareizu neredzu. Bet man šķiet, ka To kļūdu rada tas, ko esi ierakstījis tajā Edit Panel daļā. Vai neesi salicis nevajadzīgas tukšas rindas pēc sava uzrakstītā? Un vai tajā var uzreiz rakstīt iekšā PHP kodu? Link to comment Share on other sites More sharing options...
andrisp Posted March 25, 2008 Report Share Posted March 25, 2008 Pamēģini to kodu ielikt tur bez <?php un ?> Link to comment Share on other sites More sharing options...
777 Posted March 25, 2008 Report Share Posted March 25, 2008 nav vieglak sameklet moduli ? interneta to tik daudz ... ka varesi izveleties , kads tev patik Link to comment Share on other sites More sharing options...
ljevijs Posted March 26, 2008 Author Report Share Posted March 26, 2008 Pamēģini to kodu ielikt tur bez <?php un ?> nesanaaca tas pats :/ Link to comment Share on other sites More sharing options...
Recommended Posts