Jump to content

Breaker

Members
  • Posts

    35
  • Joined

  • Last visited

Everything posted by Breaker

  1. Breaker

    flux error

    Critical Error An error was encountered during the lifetime of the application. This could be due to a variety of problems, such as a bug in the application. However, normally it is caused by misconfiguration. Exception Details Error: Flux_Error Message: Critical MySQL error in Installer/Updater: Table 'cp_banlog' already exists File: /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/lib/Flux/Installer/Schema.php:133 File Line Function/Method /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/lib/Flux/Installer/Schema.php 157 Flux_Installer_Schema::install() /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/lib/Flux/Installer/MainServer.php 46 Flux_Installer_Schema::update() /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/modules/install/index.php 83 Flux_Installer_MainServer::updateAll() /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/lib/Flux/Template.php 337 include() /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/lib/Flux/Dispatcher.php 168 Flux_Template::render() /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/index.php 171 Flux_Dispatcher::dispatch() Exception Trace As String #0 /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/lib/Flux/Installer/Schema.php(157): Flux_Installer_Schema->install(497) #1 /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/lib/Flux/Installer/MainServer.php(46): Flux_Installer_Schema->update() #2 /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/modules/install/index.php(83): Flux_Installer_MainServer->updateAll() #3 /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/lib/Flux/Template.php(337): include('/is/htdocs/wp10...') #4 /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/lib/Flux/Dispatcher.php(168): Flux_Template->render() #5 /is/htdocs/wp10776272_AF5EHZ3K1Q/www/fluxcp/index.php(171): Flux_Dispatcher->dispatch(Array) #6 {main} thats the error i got but i dont know whats exactly wrong O_o help please
  2. i have found this code in the internet but if i do it just shows me a white 1x1 pixel emblem and not the testemblems i made please help <?php function flux_get_default_bmp_data() { $filename = "./img/leer.bmp"; if (file_exists($filename)) { return file_get_contents($filename); } } function flux_display_empty_emblem() { $data = flux_get_default_bmp_data(); header("Content-Type: image/bmp"); header('Content-Length: '.strlen($data)); echo $data; exit; } $server = "xxxx"; $db2 = "xxxx"; $loginName = "xxxx"; $passwort = xxxx"; $guildID = (int)$_GET["id"]; if ($guildID && ($guildID > 0)) { flux_display_empty_emblem(); } else { $interval = 1; if ($interval > 0) { $interval *= 60; $dirname = "./tmp/"; $filename = "$dirname/$guildID.png"; if (!is_dir($dirname)) { mkdir($dirname, 0777, true); } elseif (file_exists($filename) && (time() - filemtime($filename)) < $interval) { header("Content-Type: image/png"); header('Content-Length: '.filesize($filename)); readfile($filename); exit; } } $db = mysql_connect($server, $loginName, $passwort); $sql = "SELECT emblem_len, emblem_data FROM $db2.guild WHERE guild_id = $guildID LIMIT 1"; $res = mysql_query($sql, $db); if (!$res || (mysql_num_rows($res) < 1)) { flux_display_empty_emblem(); } else { require_once './imagecreatefrombmpstring.php'; $data = @gzuncompress(pack('H*', $res->emblem_data)); $image = imagecreatefrombmpstring($data); header("Content-Type: image/png"); //header('Content-Length: '.strlen($data)); // -- Too unsafe; Can never be sure of the size. if ($interval) { imagepng($image, $filename); } imagepng($image); exit; } } ?> BUMP
  3. thank you that works totally fine! super fast reply here! another question is (goes in the same direction) how can i filter out different playernames lets say make a pvp ladder and display the first 3 names and their guild emblems? or the same for woe castles, display which guilds holds the current woe castle and such! thanks in advance BREAKER
  4. hi i was just wondering how to include the current online counter on the top of the header (like the most of the sites have now) im pretty new to all this stuff and dont know that much if its somehow teachable i would be very thankful of your replies thanks in advance Breaker
×
×
  • Create New...