Exemplo n.º 1
0
            ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css"  href="../css/style.css" />
<link rel="stylesheet" type="text/css"  href="../css/gallary.css" />
<link type="text/css" rel="stylesheet" href="../css/smoothness/jquery-ui.css"/>

<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery-ui.min.js"></script>
<script type="text/javascript" src="../js/jquery.form.js" ></script>

<script>var rootUploadsFolder='';</script>
<script type="text/javascript" src="gallery.js" ></script>
<?php 
            $firstFolder = getFirstFolder($gid);
            ?>
<script>
$(document).ready(function(){	
	loadFolderList(rootUploadsFolder,'<?php 
            echo $firstFolder;
            ?>
',1);
});
</script>

</head>
<body style="margin:10px; overflow:hidden">
<div id="upload_div" ></div>
<div id="loading">LOADING ...</div>
<div class="head"><div class="galTitle"><?php 
Exemplo n.º 2
0
if (!defined("__PAC_APPNAME")) {
    define("__PAC_APPNAME", strtoupper(__PAC_APPVENDOR));
}
if (!defined(__PAC_APPNAME . "_PATH_ROOT")) {
    // var_dump(__PAC_REQUIRE_FROM);
    define("__PAC_PATH_ROOT", dirname($_SERVER['DOCUMENT_ROOT']) . DIRECTORY_SEPARATOR);
    //XXX: always one level under public folder
    // echo "define('__PAC_PATH_ROOT', '" . __PAC_PATH_ROOT . "');\n";
    if (empty(__PAC_REQUIRE_FROM)) {
        define("__PAC_BASE", __PAC_PATH_ROOT);
    } else {
        define("__PAC_BASE", dirname(__PAC_REQUIRE_FROM) . DIRECTORY_SEPARATOR);
    }
    // echo "define('__PAC_BASE', '" . __PAC_BASE . "');\n";
    if (empty(__PAC_REQUIRE_FROM)) {
        define("__PAC_PATH_PUB", __PAC_BASE . getFirstFolder(substr(__FILE__, strlen(__PAC_PATH_ROOT))) . DIRECTORY_SEPARATOR);
    } else {
        define("__PAC_PATH_PUB", __PAC_REQUIRE_FROM);
    }
    // echo "define('__PAC_PATH_PUB', '" . __PAC_PATH_PUB . "');\n";
    define("__PAC_PATH_LIB", __PAC_BASE . "lib" . DIRECTORY_SEPARATOR);
    // echo "define('__PAC_PATH_LIB', '" . __PAC_PATH_LIB . "');\n";
    define("__PAC_PATH_LIBPAC", __PAC_PATH_LIB . "pac" . DIRECTORY_SEPARATOR);
    // echo "define('__PAC_PATH_LIBPAC', '" . __PAC_PATH_LIBPAC . "');\n";
    define("__PAC_PATH_LIBVENDOR", __PAC_PATH_LIB . __PAC_APPVENDOR . DIRECTORY_SEPARATOR);
    // echo "define('__PAC_PATH_LIBVENDOR', '" . __PAC_PATH_LIBVENDOR . "');\n";
}
# ──────────────────────────────────────────────────────────────────────────────
# ─ ▲ ─┤ LICENSE CC BY-NC-ND ├────────────────────────────────────────────── ▲ ─
# ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
################################################################################