Ejemplo n.º 1
0
$geodesic = urldecode(stripslashes($geodesic));
$readonly = isset($_GET['readonly']) ? $_GET['readonly'] == 'true' ? 'true' : 'false' : 'false';
$conv_iso = isset($_GET['i']) ? $_GET['i'] : '';
if (!$parted) {
    include "../conf/config.php";
    include "../func/function.php";
    include "declaration.php";
    echo getDoctype(false) . "\n";
    ?>
<html <?php 
    echo getHTMLTagContent();
    ?>
>
  <head>
    <script type="text/javascript" charset="UTF-8" src="<?php 
    echo getScriptJS(__FILE__);
    ?>
"></script>
<?php 
    include "application_" . $_SESSION['language'] . ".php";
    include "mailfunctions_" . $_SESSION['language'] . ".php";
    ?>
    <?php 
    echo getMetaTags();
    ?>
    <title><?php 
    echo $_SESSION['Application_title'];
    ?>
 <convert>#label=243<convert></title>
    <link rel="stylesheet" type="text/css" href="../css/details.css" />
    <link rel="stylesheet" type="text/css" href="../css/global.css" />
Ejemplo n.º 2
0
function refreshJSCache()
{
    $dest = listFilesFromType("html", "php");
    $avFuncs = array();
    $needFuncs = array();
    $destFiles = array();
    foreach ($dest as $file) {
        $destPath = "html/" . getScriptJS($file);
        if (!in_array($destPath, $destFiles)) {
            $destFiles[] .= $destPath;
            $avFuncs = listAvailableFunctions("scripts/source/script.js");
            $needFuncs = listNeededFunctions($file, $avFuncs);
            $needFuncs = listDependences($needFuncs, $avFuncs);
            $source = getFunctionsSrc($needFuncs, $avFuncs);
            if (count($needFuncs) != 0) {
                if (fileExists($destPath)) {
                    if (@unlink($destPath)) {
                        echo start_comment . "File " . $destPath . " unlinked !" . end_comment . "\n";
                    }
                }
                $handleW = @fopen($destPath, "w");
                if ($handleW) {
                    fwrite($handleW, $source);
                    echo start_comment . "File " . $destPath . " done !" . end_comment . "\n";
                    foreach ($needFuncs as $function) {
                        echo start_comment . $function . end_comment . "\n";
                    }
                } else {
                    echo "error khudsf87098df<br>";
                }
                @fclose($handleW);
            }
        }
    }
}