Greg0 Greg0  • 29.10.16 11:21

[MANDELA] COMO CONFIGURAR SWF Empty [MANDELA] COMO CONFIGURAR SWF 29.10.16 11:21

Reputação da mensagem: 100% (1 votos)
Não sei como configurar SWF deste tipo, alguém me ajuda?

A SWF tem essas pasta:

http://prntscr.com/d0furi

Acho que configurar aqui, alguém sabe como?

Código:
<?php
    
    // Overrides generator
    
    header('content-type: text/plain');
    
    // Check to see if there is already a texts file and when it was last
    // updated. If it was last updated over 12 hours ago then we will open
    // a database connection to update it.
    if(file_exists('external_flash_override_texts.txt') && (time() - 43200 < filemtime('external_flash_override_texts.txt')))
    {
        include_once('external_flash_override_texts.txt');      
    }

    $sql = new MySQLi('127.0.0.1', 'root', 'senha123', 'hirbo');

    if($sql->connect_error)
    {
        // There's a problem connecting to the database so the texts cannot
        // be updated. The outdated version will be displayed till we can
        // get a database connection.
        if(file_exists('external_flash_override_texts.txt'))
        {
            include_once('external_flash_override_texts.txt');
            exit;
        }
    }

    ob_start();
   
    if($stmt = $sql->prepare('SELECT `key`,`value` FROM `client_external_texts`'))
    {
        $stmt->execute();
        $stmt->bind_result($key, $value);

        while($stmt->fetch())
        {
            // All results are now fetched from the database so
            // we'll output them and cache everything once this
            // has finished.
            echo $key . "=" . $value . "\r\n";
        }

        $stmt->close();
    }
   
    if($stmt = $sql->prepare('SELECT `badge_code`, `badge_title`, `badge_desc` FROM `client_external_badge_texts`'))
    {
        $stmt->execute();
        $stmt->bind_result($code, $title, $description);

        while($stmt->fetch())
        {
            // All results are now fetched from the database so
            // we'll output them and cache everything once this
            // has finished.
            echo "badge_name_" . $code . "=" . $title . "\r\n";
            echo "badge_desc_" . $code . "=" . $description . "\r\n";
        }

        $stmt->close();
    }

    $sql->close();

    // The above has grabbed the badge names and descriptions from the database
    // and outputted them to the page. Now we need to write them to the cache
    // so we aren't opening a database connection each time this file is requested.
    $file = fopen('external_flash_override_texts.txt', 'w');

    fwrite($file, ob_get_contents());
    fclose($file);

    ob_end_flush();

Edu' Edu'  • 29.10.16 22:06

[MANDELA] COMO CONFIGURAR SWF Empty Re: [MANDELA] COMO CONFIGURAR SWF 29.10.16 22:06

Olá, assim como qualquer outra SWF a configuração é em gamedata > external_variables

BugOficial BugOficial  • 30.10.16 9:24

[MANDELA] COMO CONFIGURAR SWF Empty Re: [MANDELA] COMO CONFIGURAR SWF 30.10.16 9:24

Olá,

Essas novas SWF's é composta por uma external override, então:

Configure corretamente os links da external_variables e external_override_variables com ip/site do seu hotel!

Lembrando, não adianta você configurar a SWF corretamente e não configurar a client, quaisquer coisa posta aqui!

pedxz pedxz  • 01.11.16 20:07

Super administradorMembro da Equipa

[MANDELA] COMO CONFIGURAR SWF Empty Re: [MANDELA] COMO CONFIGURAR SWF 01.11.16 20:07

O autor tem até 24h para amostra-se satisfeito ou não!
Permissões neste sub-fórum
Não podes responder a tópicos

BH Servers

Recomendamos a BH Servers com proteção DDOS gratuita em Cloud Server de alta performance. Entrega imediata.