Beispiel #1
0
            }
            // Explicit requires
            if (in_array($n, $pack['requires'])) {
                // Implicit requires
                if (in_array($n, $req)) {
                    if ($first) {
                        $first = false;
                        echo $pack['name'] . "\n";
                    }
                    echo "\t- {$n} optional and implicitly required\n";
                }
                $req = getRequires($n, $req);
                // Not explicit
            } else {
                // Not implicit
                if (!in_array($n, $req) && !in_array($n, $conf['missing']) && !(isset($conf['ignore'][$pack['name']]) && in_array($n, $conf['ignore'][$pack['name']]))) {
                    if ($first) {
                        $first = false;
                        echo $pack['name'] . "\n";
                    }
                    echo "\t+ {$n}  optional, missing\n";
                }
            }
        }
    }
}
$verb = in_array('-v', $_SERVER['argv']);
$conf = loadConf($verb);
loadFiles($verb);
showBuildOrder($verb);
scanOptional($verb);
Beispiel #2
0
$script = '';
$loaded = array();
// Preload thses files!
loadFiles($loadFirst);
// Load the specified folder
$temp = @opendir($loadDir);
// Skip These Files
$arr = array('index.php', 'run.php');
foreach (explode(',', $loadFirst) as $filePreLoad) {
    $arr[] = $filePreLoad;
}
// Look in the folder for javascript files
while ($file = @readdir($temp)) {
    if (!in_array($file, $arr) and !is_dir('./' . $file) and substr($file, -3, 3) == '.js') {
        // Load Found File
        loadFiles($file);
    }
}
@closedir($temp);
// Check for GZip
$runGZip = false;
// The Regular Crap, no GZip :(
$php = '<' . '?php 
header("Content-type: text/javascript; charset: UTF-8");
header("Cache-Control: must-revalidate");
header("Expires: " .gmdate("D, d M Y H:i:s",time() + (60 * 60)) . " GMT");
readfile("' . $filePrefix . '.js");';
// Do you haz GZip?
if (function_exists('gzdeflate')) {
    // YAY!
    $runGZip = true;
Beispiel #3
0
}
foreach (explode(',', $skip_file) as $filePreLoad) {
    $arr2[] = $filePreLoad;
}
// Look in the folder for javascript files
while ($file = @readdir($temp)) {
    if (!in_array($file, $arr) and !is_dir('./' . $file)) {
        if (substr($file, -6, 6) == 'min.js') {
            if (!in_array($file, $arr2)) {
                $skipped[] = token_get_all(loadFiles($file));
            }
        } else {
            if (substr($file, -3, 3) == '.js') {
                // Load Found File
                if (!in_array($file, $arr2)) {
                    $script[] = loadFiles($file);
                }
            }
        }
    }
}
@closedir($temp);
// Check for GZip
$runGZip = false;
// The Regular Crap, no GZip :(
$php = '<' . '?php 
header("Content-type: text/javascript; charset: UTF-8");
header("Cache-Control: must-revalidate");
header("Expires: " .gmdate("D, d M Y H:i:s",time() + (60 * 60)) . " GMT");
readfile("' . $filePrefix . '.js");';
// Do you haz GZip?
}
// Load the specified folder
$temp = @opendir($loadDir);
// Skip These Files
$arr = array('index.php', 'run.php');
foreach (explode(',', $loadFirst) as $filePreLoad) {
    $arr[] = $filePreLoad;
}
// Look in the folder for javascript files
while ($file = @readdir($temp)) {
    if (!in_array($file, $arr) and !is_dir($loadDir . $file) and substr($file, -3, 3) == '.js') {
        // Load Found File
        if (!in_array($file, $arr)) {
            $scriptdata[] = loadFiles($file);
        } else {
            $skipped[] = loadFiles($file);
        }
    }
}
@closedir($temp);
// Check for GZip
$runGZip = false;
// The Regular Crap, no GZip :(
$php = '<' . '?php 
header("Content-type: text/javascript; charset: UTF-8");
header("Cache-Control: must-revalidate");
header("Expires: " .gmdate("D, d M Y H:i:s",time() + (60 * 60)) . " GMT");
readfile("' . $filePrefix . '.js");';
// Do you haz GZip?
if (function_exists('gzdeflate')) {
    // YAY!
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Deway Project</title>
        <?php 
require_once "php/mainFunctions.php";
loadFiles("{'css':['bootstrap','sweetalert','main']}");
loadFiles("{'js':['libs/jQuery','libs/bootstrap','libs/sweetalert','var','content','js']}");
?>
    </head>
    <body>
        <nav class="navbar navbar-default navbar-fixed-top">
            <div class="container">
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand">Deway Project</a>
                </div>
                <div id="navbar" class="navbar-collapse collapse" aria-expanded="false" style="height:1px;">
                    <ul class="nav navbar-nav">
                        <li class="signup active"><a onclick="loadContent('signup')">Novo cadastro</a></li>
                        <li class="list"><a onclick="loadContent('list')">Visualizar cadastros</a></li>
                    </ul>
                </div>
            </div>
Beispiel #6
0
    //	$string = str_replace(array("\r\n", "\r", "\n", "\t", 'Â  ', 'Â Â Â  ', 'Â Â Â  '), '', $string);
    return $string;
}
function loadFiles()
{
    $files = array('../../../kernel/lib/xorg/modernizr/modernizr.custom.33475.js', '../../../kernel/lib/xorg/jQuery/jquery-ui-1.11.2/external/jquery/jquery.min.1.10.js', '../../../kernel/lib/xorg/jQuery/jquery-ui-1.11.2/jquery-ui.min.js', '../../../kernel/lib/xorg/jQuery/jquery-migrate-1.0.0.min.js', '../../../kernel/lib/xorg/global/global.min.js', '../../../kernel/lib/xorg/jQuery/plugin/address/jquery.address-1.5.min.js', '../../../kernel/lib/xorg/jQuery/plugin/showLoading/jquery.showLoading.min.js', '../../../kernel/lib/xorg/ajax/ajax.js', '../../../kernel/lib/xorg/jQuery/plugin/layerSlider/layerslider.kreaturamedia.jquery-min.js', '../../../kernel/lib/xorg/jQuery/plugin/scrollTo/jquery.scrollTo-1.4.3.1-min.js', '../../../kernel/lib/xorg/global/disableScroll.js', '../../../kernel/lib/xorg/jQuery/plugin/tipTip/jquery.tipTip.minified.js', '../../../kernel/lib/xorg/jQuery/plugin/sharrre/jquery.sharrre-1.3.4.min.js', '../../../kernel/lib/xorg/jQuery/plugin/sharrre/start.js', '../../../kernel/lib/xorg/jQuery/plugin/mcdropdown/jquery.mcdropdown.min.js', '../../../kernel/lib/xorg/jQuery/plugin/mcdropdown/jquery.bgiframe.js', '../../../kernel/lib/xorg/jQuery/plugin/masonry/masonry.pkgd.min.js', '../../../kernel/lib/xorg/jQuery/plugin/hoverDir/jquery.hoverdir.js', '../../../kernel/lib/xorg/jQuery/plugin/elevateZoom/jquery.elevateZoom-3.0.8.min.js', '../../../kernel/lib/xorg/jQuery/plugin/countdown/jquery.countdown.min.js', 'custom.js', 'startUp.js');
    foreach ($files as $file) {
        $string .= file_get_contents($file);
    }
    return compress($string);
}
if (extension_loaded('zlib')) {
    ob_start('ob_gzhandler');
}
header('content-type: text/javascript; charset: UTF-8');
header('cache-control: must-revalidate');
$offset = 168 * 60 * 60;
$expire = 'expires: ' . gmdate('D, d M Y H:i:s', time() + $offset) . ' GMT';
header($expire);
ob_start();
if (file_exists('../../../tmp/cache/js.js')) {
    if (filemtime('../../../tmp/cache/js.js') < time() - 2592000) {
        file_put_contents('../../../tmp/cache/js.js', loadFiles());
    }
} else {
    file_put_contents('../../../tmp/cache/js.js', loadFiles());
}
include '../../../tmp/cache/js.js';
if (extension_loaded('zlib')) {
    ob_end_flush();
}
Beispiel #7
0
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="author" content="Thiago Jourdan">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>Software teste de banco de dados de estoque</title>
        <?php 
require_once "php/mainFunctions.php";
loadFiles("{'css':['bootstrap','sweetalert','mainStyle']}");
loadFiles("{'js':['libs/jQuery','libs/bootstrap','plugins/sweetalert','plugins/sonic','plugins/inputMasks','mainFunctions','js']}");
$usuario = sessionBegin();
?>
    </head><!-- Head -->
    <body>
        <div class="container col-lg-12">
            <div class="row" style="background:#E7E7E7">
                <img
                    src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASIAAAB0CAYAAAAhHj/oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3wsKFCoJOkmqDwAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAARLElEQVR42u2de5RV1X3HPzMDDMNLBGEwTg2gWN+CETUYkmrismnUtGkeWtvYatSUxmS1adQ0rU20K0mbNo/aWG0atT5Wm3bZStKgMVptQhsf0RohAqKoIIg81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TqRBeVG7HB8rNZqU1u+TyB1eZciw2WL8SoY6Sb80uAL1I87jIuSPcwODRopVd6K5ZNOh6b2nk6FgS+ChvNr5riu0lYYWDZ/872e9/lgrTBz7tLj6QQI5MPER+TObZ0YRXDPbnPN2ATNp6IBj8XQtRAMzaNzFcZrPKtRZQGsE6d97hr1q5bKoRcs3ppweI8V2IdS+dgQ5JW2OmuUb9bQhuxYTd+is0Xv0qPixASon3JFAbnFq+MrDgJ65vV6S7Y81hfqS49JkKI/WEpab4pIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEKOZ/weTv/AiwtJDsAAAAABJRU5ErkJggg=="
                alt="Controk Logo" />
            </div>
            <div class="row">
                <nav class="navbar navbar-default">
                    <div class="container-fluid">
                        <div class="navbar-header">
                            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse" aria-expanded="true">
                                <span class="sr-only">Toggle navigation</span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                                <span class="icon-bar"></span>
                            </button>
Beispiel #8
0
    $string = str_replace(array("\r\n", "\r", "\n", "\t", '  ', '    ', '    '), '', $string);
    return $string;
}
function loadFiles()
{
    $files = array('../../../kernel/lib/xorg/jQuery/jquery-ui-1.11.2/jquery-ui.min.css', 'reset.css', 'global.css', 'regional.css', 'responsive.css', 'modules/shop.css', 'modules/basket.css', 'animate/animate.css', 'sharrre/style.css', 'tipTip/tipTip.css', 'mcdropdown/jquery.mcdropdown.css', 'fullScreenPureCssSlider/style.css', 'awesomeFont/font-awesome.css');
    foreach ($files as $file) {
        $string .= file_get_contents($file);
    }
    return compress($string);
}
if (extension_loaded('zlib')) {
    ob_start('ob_gzhandler');
}
header('content-type: text/css; charset: UTF-8');
header('cache-control: must-revalidate');
$offset = 168 * 60 * 60;
$expire = 'expires: ' . gmdate('D, d M Y H:i:s', time() + $offset) . ' GMT';
header($expire);
ob_start();
if (file_exists('../../../tmp/cache/style.css')) {
    if (filemtime('../../../tmp/cache/style.css') < time() - 2592000) {
        file_put_contents('../../../tmp/cache/style.css', loadFiles());
    }
} else {
    file_put_contents('../../../tmp/cache/style.css', loadFiles());
}
include '../../../tmp/cache/style.css';
if (extension_loaded('zlib')) {
    ob_end_flush();
}
Beispiel #9
0
}
$suites = glob(dirname(__FILE__) . "/../clients/{$suiteOpt->value}", GLOB_ONLYDIR);
foreach ($suites as $suite) {
    $tests = glob("{$suite}/{$testOpt->value}", GLOB_ONLYDIR);
    foreach ($tests as $test) {
        $requestInfos = loadFiles(glob("{$test}/request/*"));
        if (count($requestInfos) === 0) {
            echo $out->outputLine('No files found for this test!', 'error');
        }
        foreach ($requestInfos as $file => $info) {
            $out->outputLine();
            $out->outputLine('- Printing infos for test suite "' . basename($suite) . '":', 'headline_1');
            $out->outputLine('--- Printing infos for test "' . basename($test) . '/request":', 'headline_2');
            $out->outputLine('----- Printing file contents for "' . $file . '"', 'headline_3');
            $out->outputLine('------------------------------------- START ------------------------------------', 'border');
            $out->outputLine($info);
            $out->outputLine('-------------------------------------- END -------------------------------------', 'border');
        }
        $responseInfos = loadFiles(glob("{$test}/response/*"));
        if (count($responseInfos) === 0) {
            echo $out->outputLine('No files found for this test!', 'error');
        }
        foreach ($responseInfos as $file => $info) {
            $out->outputLine('--- Printing infos for test "' . basename($test) . '/response":', 'headline_2');
            $out->outputLine('----- Printing file contents for "' . $file . '"', 'headline_3');
            $out->outputLine('------------------------------------- START ------------------------------------', 'border');
            $out->outputLine($info);
            $out->outputLine('-------------------------------------- END -------------------------------------', 'border');
        }
    }
}
function loadFiles($folder)
{
    //grab all the files in the specified directory
    $files = scandir($folder);
    foreach ($files as $filename) {
        if ($filename != "." && $filename != "..") {
            if (is_dir($filename)) {
                //handle nesting
                loadFiles($filename);
            } else {
                if (strpos($filename, '.php') !== false) {
                    require $folder . "/" . $filename;
                }
            }
        }
    }
}
Beispiel #11
0
<?php 
session_start();
$linkchap = $_SESSION['linkchap'];
$listUri = loadFiles($linkchap);
//$listUri = loadFiles('./image/hacklink/chap1');
function loadFiles($path)
{
    $files = array();
    if ($handle = opendir($path)) {
        /* This is the correct way to loop over the directory. */
        while (false !== ($entry = readdir($handle))) {
            if ($entry != "." && $entry != "..") {
                $files[] = $path . "//" . $entry;
            }
        }
        closedir($handle);
    }
    return $files;
}
//Load tat ca ten file hinh anh trong thu muc
//rsort($listUri);
//tra ve danh sach cac url
echo implode(",", $listUri);
ob_flush();
flush();
Beispiel #12
0
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>Login para SEFUNC BD</title>
        <?php 
session_start();
if (!empty($_SESSION['usuario']) || isset($_SESSION['usuario'])) {
    header("location:/trabalhos/gti/bda1/");
}
require_once "php/mainFunctions.php";
loadFiles("{'css':['sweetalert','oldStyle']}");
loadFiles("{'js':['libs/jQuery','plugins/sweetalert','js','manager']}");
?>
        <script>
            $(document).ready(function (){
                $('body').css('opacity','0').fadeTo(600, 1,'swing');
                $(".logIn").submit(function(){
                    loadFile("class/Sessao.js"); var sessao=new Sessao();
                    sessao.logIn();
                    return false;
                });
                $(".backToMain").click(function(){location.href="/";});
                $(".usuario").focus();
            });
            function mudarAcao(){
                switch($('.mudaAcao').val()){
                    case "Cadastre-se":
                        $('.acaoSessao').val("cadastrar");
                        $('.mudaAcao').val("Fazer LogIn");
                        $('button').html("Cadastrar");
Beispiel #13
0
        $checkSlash = substr($folder, 0, 1);
        if ($checkSlash == '/') {
            $folder = substr($folder, 1);
            updateFolder($folder, $fid);
        }
        $file = '../../../uploads/' . $folder . $photo;
        if (!file_exists($file)) {
            delPhoto($row['id']);
            $missinFiles .= '<div style="color:#600">' . $file . '</div>';
            $deletedRecs++;
        }
    }
    echo 'Missing Files : ' . $deletedRecs;
    echo "<p>" . $missinFiles . "</p>";
    /**************Sync files***************/
    $files = loadFiles($_POST['folder']);
    $syncFiles = 0;
    $syncFilesList = '';
    for ($i = 0; $i < count($files); $i++) {
        //echo "<br>".$files[$i];
        if (!checkFile($files[$i])) {
            $syncFiles++;
            $syncFilesList .= '<div style="color:#060">-' . $files[$i] . '</div>';
        }
    }
    echo 'Syne Files : ' . $syncFiles;
    echo "<p>" . $syncFilesList . "</p>";
}
function updateFolder($folder, $fid)
{
    $sql2 = "UPDATE galleries_photos set folder='{$folder}' where id ='{$fid}'";