TInvalidOperationException

Description

Component 'viewGame' is evaluating invalid PHP statements 'if($this->File->image==0) { if($this->File->code!='' || $this->File->upload!='') $iframe = stripslashes($this->File->code); else $iframe = ''; } else $iframe = ''; require_once("reklamy/library/sql.class.php"); $sql = new mysql; $query = $sql->fetch_row($sql->query("SELECT * FROM banners ORDER BY (count+atstart) ASC LIMIT 1")); if($query["id"]) $sql->query("UPDATE banners SET count=count+1 WHERE id=".$query["id"].""); $data = file_get_contents(stripslashes($query["url"])); $timeout = implode(file("reklamy/include/timeout.dat")); if(eregi("width=", $iframe) || eregi("width:", $iframe) || eregi("height=", $iframe) || eregi("height:", $iframe)) { $tmp = str_replace(": ", "=", str_replace(":", "=", $iframe)); $tmp_exp = explode(" ", $tmp); foreach($tmp_exp as $word) { if(eregi("width=", $word)) $width = intval(str_replace('"', "", str_replace("'", "", str_replace("width=", "", $word)))); if(eregi("height=", $word)) $height = intval(str_replace('"', "", str_replace("'", "", str_replace("height=", "", $word)))); } } if(!$width) $width = 800; if(!$height) $height = 600; echo '<script type="text/javascript"> var loaded_site = false; var load_check = false; function run_game() { load_check = true; if(loaded_site) { document.getElementById("layer").style.visibility = "hidden"; document.getElementById("igame").style.visibility = "visible"; } } function stop_loading() { document.getElementById("loading").innerHTML = \'<img src="reklamy/gfx/load.gif" alt=""/>&nbsp; Gra załadowana. Proszę czekać.\'; loaded_site = true; if(load_check) { document.getElementById("layer").style.visibility = "hidden"; document.getElementById("igame").style.visibility = "visible"; } } setTimeout("run_game()", '.$timeout.'); </script>'; if($this->File->image==0) // wyswietlamy zwykly obiekt { if($this->File->code!='' || $this->File->upload!='') // wstawiamy kod pliku if(!empty($iframe)) { echo '<div id="main" style="background-color: #1B1B1B; width: '.$width.'px; height: '.$height.'px; border: 1px solid #000000; margin: 0 auto"> <div id="layer" style="background-color: #1B1B1B; width: '.$width.'px; height: '.$height.'px; position: absolute; z-index: 100"> <div id="reklama" style="text-align: center; height: '.($height-40).'px">'.$data.'</div> <div id="loading" style="text-align: center; height: 20px"><img src="reklamy/gfx/load.gif" alt=""/>&nbsp; Trwa ładowanie gry...</div> </div> <iframe id="igame" border="0" style="width: '.$width.'px; height: '.$height.'px; border: 0px solid #000000; visibility: hidden" scrolling="no" src="iframe.php?source='.base64_encode($iframe).'"></iframe> </div>'; } else echo stripslashes($this->File->code); else // albo url do strony echo '<a href="'.stripslashes($this->File->url).'" target="_blank">'.stripslashes($this->File->url).'</a>'; } else // mamy obraz echo '<a href="./imgprev.php?img='.$this->File->thumb.'" target="_blank" onclick="return!window.open(this.href)"><img src="./upload/images/tn_'.$this->File->thumb.'" width="'.$this->Application->Parameters['ImgWidth'].'px" height="'.$this->Application->Parameters['ImgHeight'].'px" /></a>';' : [Warning] file_get_contents() [<a href='function.file-get-contents'>function.file-get-contents</a>]: Filename cannot be empty (@line 13 in file /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/TComponent.php(407) : eval()'d code)..

Source File

/home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/TComponent.php (415)

0404:         try
0405:         {
0406:             ob_start();
0407:             if(eval($statements)===false)
0408:                 throw new Exception('');
0409:             $content=ob_get_contents();
0410:             ob_end_clean();
0411:             return $content;
0412:         }
0413:         catch(Exception $e)
0414:         {
0415: throw new TInvalidOperationException('component_statements_invalid',get_class($this),$statements,$e->getMessage());
0416: } 0417: } 0418: } 0419: 0420: /** 0421: * TPropertyValue class 0422: * 0423: * TPropertyValue is a utility class that provides static methods 0424: * to convert component property values to specific types. 0425: * 0426: * TPropertyValue is commonly used in component setter methods to ensure 0427: * the new property value is of specific type.

Stack Trace

#0 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/Web/UI/TControl.php(2202): TComponent->evaluateStatements('if($this->File-...')
#1 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/Web/UI/TControl.php(1232): TCompositeLiteral->evaluateDynamicContent()
#2 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/Web/UI/TControl.php(1230): TControl->preRenderRecursive()
#3 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/Web/UI/TControl.php(1230): TControl->preRenderRecursive()
#4 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/Web/UI/TControl.php(1230): TControl->preRenderRecursive()
#5 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/Web/UI/TControl.php(1230): TControl->preRenderRecursive()
#6 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/Web/UI/TPage.php(195): TControl->preRenderRecursive()
#7 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/Web/UI/TPage.php(173): TPage->processNormalRequest(Object(THtmlWriter))
#8 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/Web/Services/TPageService.php(458): TPage->run(Object(THtmlWriter))
#9 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/TApplication.php(988): TPageService->run()
#10 /home/ubieraj24/domains/ubieraj24.pl/public_html/libs/prado/TApplication.php(346): TApplication->runService()
#11 /home/ubieraj24/domains/ubieraj24.pl/public_html/index.php(35): TApplication->run()
#12 {main}
2012-02-09 18:27 Apache/2 PRADO/3.0.2