Exemplo n.º 1
0
function hier_file_list($dir, $path = '')
{
    static $hier_i = 0;
    $filenames = array();
    $directories = opendir(OPENLD_ROOT . $dir . $path);
    while (false !== ($file = readdir($directories))) {
        if (is_dir(OPENLD_ROOT . $dir . $path . "/" . $file) && substr($file, 0, 1) != '.') {
            $filenames = array_merge($filenames, hier_file_list($dir, $path . "/" . $file));
        } elseif (is_file(OPENLD_ROOT . $dir . $path . "/" . $file)) {
            $filenames[$hier_i] = array('filename', 'permission', 'id');
            $filenames[$hier_i]['filename'] = $path . '/' . $file;
            if (!is_writable($filenames[$hier_i]['filename'])) {
                @chmod($filenames[$hier_i]['filename'], get_filepermission());
            }
            $filenames[$hier_i]['permission'] = is_writable(OPENLD_ROOT . $filenames[$hier_i]['filename']) ? IS_WRITEABLE : NOT_WRITEABLE;
            $filenames[$hier_i]['id'] = $hier_i;
            $hier_i++;
        }
    }
    return $filenames;
}
Exemplo n.º 2
0
define("SIMPLE_LABEL", "simples");
define("FREE_LABEL", "Free");
//extension errors
define("EXTENSION_ROOT_ERROR", "extension élément racine est incorrect ou manquant.");
define("EXTENSION_ID_ERROR", "extension Element / id est incorrect ou manquant.");
define("EXTENSION_ID_ERROR2", "extension Element / id ne correspond pas au nom du dossier d'extension.");
define("EXTENSION_TITLE_ERROR", "extension Element / titre est incorrect ou manquant.");
define("EXTENSION_VERSION_ERROR", "extension Element / version est incorrecte ou manquante.");
define("EXTENSION_DESCRIPTION_ERROR", "extension Element / description est incorrect ou manquant.");
define("EXTENSION_AUTHOR_ERROR", "extension Element / auteur est mal formé ou manquant.");
define("EXTENSION_HOOKS_ERROR", "extension Element / crochets, il est incorrect ou manquant.");
define("EXTENSION_HOOKS_HOOK_ERROR", "extension Element / crochets / crochet sont mal formés ou manquant.");
define("EXTENSION_HOOKS_HOOK_ERROR2", "extension Element / crochets / crochet sont manquantes un attribut 'id'.");
define("EDIT_EXTENSION", "Edit Extension");
define("HOOKS", "Hooks");
define("EXTENSION_PERMISSION_WARNING", "Vous devez modifier les autorisations dans le fichier:% s à " . get_filepermission(true) . " afin de modifier en ligne.");
define("EXTENSION_FILE_NOT_FOUND", "Erreur:%s n'a pu être trouvé");
define("EXTENSION_ALLREADY_INSTALLED", "Erreur: l'extension %s est deja installé");
define("EXTENSIONS_DISABLED", "Extensions est désactivée. Vous devez vous rendre à l'admin-> OTIONS et les changements et les extensions de préférence handicapés avant extensions installées puissent prendre effet.");
//new defines
define("POSITION_NOT_A_NUMBER", "La position que vous avez suggéré n'est pas un nombre numérique valide");
define("HARD_BAN", "considérer ceci comme spam");
define("SEARCH_TYPE", "tapez Recherche");
define("VERSION_LABEL", "Version");
define("AUTHOR_LABEL", "Auteur");
define("INSTALL_LABEL", "Install");
define("UNINSTALL_LABEL", "Désinstaller");
define("ID_LABEL", "ID");
define("DETAILS_LABEL", "Details");
define("SUBCATEGORIES", "Sous-catégories");
define("SPONSORED_LINKS", "Liens commerciaux");
Exemplo n.º 3
0
define("TOO_SHORT_PASSWORD", "the inserted password is shorter than allowed");
define("EMAIL_TOO_LONG", "the inserted email longer than allowed");
define("EMAIL_TOO_SHORT", "the inserted email shorter than allowed");
//define("ILLEGAL_WORDS_WITHIN_EMAIL", "you have included forbidden words within the email");
define("NO_TITLE_AT_ALL", "title is missing");
define("TITLE_TOO_LONG", "The inserted title is longer than allowed");
define("TITLE_TOO_SHORT", "The inserted title is shorter than allowed.");
define("NO_DESCRIPTION_AT_ALL", "description is missing");
define("DESCRIPTION_TOO_LONG", "The inserted description is longer than allowed.");
define("DESCRIPTION_TOO_SHORT", "The inserted description is shorter than allowed.");
define("URL_TOO_LONG", "the inserted url is longer than allowed");
define("URL_TOO_SHORT", "the inserted url is shorter than allowed");
define("INVALID_URL_FORMAT", "the URL format is invalid");
define("PERMISSION_DESCRIPTION", "Ensure that permissions are set to " . get_filepermission(true) . " for the following files below.");
define("CHMOD_LABEL", "Permissions");
define("CHMOD_WARNING", "you need to set the file permissions to " . get_filepermission(true));
define("PERMISSION_NOT_CONTINUE", "you need to change file permissions before you can continue");
define("EXTENSION_ERROR", "the database type was not filled in correctly");
define("HOST_ERROR", "the host was not filled in correctly");
define("NAME_ERROR", "the database name was not filled in correctly");
define("USERNAME_ERROR", "the username was not filled in correctly");
define("PASSWORD_ERROR", "the password was not filled in correctly");
define("PREFIX_ERROR", "the prefix was not filled in correctly");
define("PASSWORD_EQUALS_USERNAME", "password must not be the same as the username.");
define("LOCAL_SETTINGS", "Database Settings");
define("OVERVIEW_TABLE_OBJECT", "Object");
define("OVERVIEW_TABLE_PREFERENCE", "Preference");
define("OVERVIEW_TABLE_DATABASE", "Database Application");
define("OVERVIEW_TABLE_HOST", "Host");
define("OVERVIEW_TABLE_NAME", "Name of Database");
define("OVERVIEW_TABLE_USERNAME", "Username for Database");
Exemplo n.º 4
0
define("SIMPLE_LABEL", "Enkel");
define("FREE_LABEL", "Fri");
define("EDIT_EXTENSION", "Redigera utbyggnad");
define("HOOKS", "Krokar");
//extension errors
define("EXTENSION_ROOT_ERROR", "Rotelementet extension saknas eller är felaktigt ifyllt.");
define("EXTENSION_ID_ERROR", "Elementet extension/id saknas eller är felaktigt ifyllt.");
define("EXTENSION_ID_ERROR2", "Elementet extension/id matchar inte med extensionens mappnamn.");
define("EXTENSION_TITLE_ERROR", "Elementet extension/title saknas eller är felaktigt ifyllt.");
define("EXTENSION_VERSION_ERROR", "Elementet extension/version saknas eller är felaktigt ifyllt.");
define("EXTENSION_DESCRIPTION_ERROR", "Elementet extension/description saknas eller är felaktigt ifyllt.");
define("EXTENSION_AUTHOR_ERROR", "Elementet extension/author saknas eller är felaktigt ifyllt.");
define("EXTENSION_HOOKS_ERROR", "Elementet extension/hooks saknas eller är felaktigt ifyllt.");
define("EXTENSION_HOOKS_HOOK_ERROR", "Elementet extension/hooks/hook saknas eller är felaktigt ifyllt.");
define("EXTENSION_HOOKS_HOOK_ERROR2", "Elementet extension/hooks/hook saknar attributen 'id'.");
define("EXTENSION_PERMISSION_WARNING", "För att kunna redigera utbyggnaden, så bör du sätta filrättigheterna för %s till " . get_filepermission(true) . ".");
define("EXTENSION_FILE_NOT_FOUND", "Fel: %s hittades inte");
define("EXTENSION_ALLREADY_INSTALLED", "Fel: utbyggnaden %s är redan installerad");
define("EXTENSIONS_DISABLED", "Extensionerna är avstängda. Du måste gå till Admin->Otions och sätta på dem igen.");
//new defines
define("POSITION_NOT_A_NUMBER", "Du måste fylla i ett nummer");
define("HARD_BAN", "skräpstämpel");
define("SEARCH_TYPE", "Söktyp");
define("VERSION_LABEL", "Version");
define("AUTHOR_LABEL", "Skapare");
define("INSTALL_LABEL", "Instalera");
define("UNINSTALL_LABEL", "Avinstallera");
define("ID_LABEL", "ID");
define("DETAILS_LABEL", "Detaljer");
define("SUBCATEGORIES", "Underkategorier");
define("SPONSORED_LINKS", "Sponsrade länkar");
Exemplo n.º 5
0
define("SIMPLE_LABEL", "Simple");
define("FREE_LABEL", "Free");
//extension errors
define("EXTENSION_ROOT_ERROR", "root element extension is malformed or missing");
define("EXTENSION_ID_ERROR", "element extension/id is malformed or missing");
define("EXTENSION_ID_ERROR2", "element extension/id does not match the extension folder name");
define("EXTENSION_TITLE_ERROR", "element extension/title is malformed or missing");
define("EXTENSION_VERSION_ERROR", "element extension/version is malformed or missing");
define("EXTENSION_DESCRIPTION_ERROR", "element extension/description is malformed or missing");
define("EXTENSION_AUTHOR_ERROR", "element extension/author is malformed or missing");
define("EXTENSION_HOOKS_ERROR", "element extension/hooks is malformed or missing");
define("EXTENSION_HOOKS_HOOK_ERROR", "element extension/hooks/hook are malformed or missing");
define("EXTENSION_HOOKS_HOOK_ERROR2", "element extension/hooks/hook are missing an attribute 'id'");
define("EDIT_EXTENSION", "Edit Extension");
define("HOOKS", "Hooks");
define("EXTENSION_PERMISSION_WARNING", "you must change permissions in the file: %s to " . get_filepermission(true) . " in order to edit it online");
define("EXTENSION_FILE_NOT_FOUND", "%s could not be found");
define("EXTENSION_ALLREADY_INSTALLED", "the extension %s is already installed");
define("EXTENSIONS_DISABLED", "Extensions is disabled. You must go to Admin->Otions and change the extensions-disabled preference before installed extensions can take effect.");
//new defines
define("POSITION_NOT_A_NUMBER", "the position you suggested is not a valid numerical number");
define("HARD_BAN", "Ban text");
define("SEARCH_TYPE", "Search type");
define("VERSION_LABEL", "Version");
define("AUTHOR_LABEL", "Author");
define("INSTALL_LABEL", "Install");
define("UNINSTALL_LABEL", "Uninstall");
define("ID_LABEL", "ID");
define("DETAILS_LABEL", "Details");
define("SUBCATEGORIES", "Subcategories");
define("SPONSORED_LINKS", "Sponsored Links");
Exemplo n.º 6
0
define("AVAILABLE_EXTENSIONS_FOR_INSTALL", "Extensii disponibile");
define("NO_EXTENSIONS_FOR_INSTALL", "Nu exista nici o prelungire disponibile pentru a instala");
define("FREE_LABEL", "Free");
//erori de prelungire
define("EXTENSION_ROOT_ERROR", "root element de prelungire este incorect sau lipseste");
define("EXTENSION_ID_ERROR", "element de prelungire / ID-ul este incorect sau lipseste");
define("EXTENSION_ID_ERROR2", "element de prelungire / ID-ul nu se potriveste cu extensia de nume de dosar");
define("EXTENSION_VERSION_ERROR", "element de prelungire / versiune este incorect sau lipseste");
define("EXTENSION_DESCRIPTION_ERROR", "element de prelungire / Descrierea este incorect sau lipseste");
define("EXTENSION_AUTHOR_ERROR", "element de prelungire / autor este incorect sau lipseste");
define("EXTENSION_HOOKS_ERROR", "element de prelungire / cârlige este incorect sau lipseste");
define("EXTENSION_HOOKS_HOOK_ERROR", "element de prelungire / cârlige / cârlig sunt malformate sau lipsesc");
define("EXTENSION_HOOKS_HOOK_ERROR2", "element de prelungire / cârlige / cârlig lipsesc un atribut 'id'");
define("EDIT_EXTENSION", "Editare Extension");
define("HOOKS", "crosete");
define("EXTENSION_PERMISSION_WARNING", "trebuie sa modificati permisiunile în fisierul:%s la " . get_filepermission(true) . ", în scopul de a edita on-line");
define("EXTENSION_FILE_NOT_FOUND", "%s nu a putut fi gasit");
define("EXTENSION_ALLREADY_INSTALLED", "extensie %s este deja instalat");
define("EXTENSIONS_DISABLED", "Extensii este dezactivat. Trebuie sa mergi la Admin-> Otions si schimbarile extensii-preferinta cu handicap înainte de a extensiile instalate pot produce efecte.");
//new defineste
define("HARD_BAN", "Ban de text");
define("SEARCH_TYPE", "tip Cauta");
define("VERSION_LABEL", "Version");
define("AUTHOR_LABEL", "Autor");
define("INSTALL_LABEL", "Install");
define("UNINSTALL_LABEL", "Uninstall");
define("ID_LABEL", "ID");
define("DETAILS_LABEL", "Detalii");
define("SUBCATEGORIES", "Subcategories");
define("SPONSORED_LINKS", "Link-uri sponsorizate");
define("PAID_LINKS", "Paid Links");
Exemplo n.º 7
0
        $_POST = stripslashes_array($_POST);
        $_COOKIE = stripslashes_array($_COOKIE);
    }
}
$success = true;
if (isset($_POST['license']) || isset($_POST['permissions'])) {
    $permission_files = array('../', '../cache', '../files');
    $permission = array();
    if (is_correct_file_permission($permission_files) && isset($_POST['permissions']) && $_POST['permissions'] == CONTINUE_) {
        $page = 'configurations.php';
    } else {
        foreach ($permission_files as $perm_file) {
            if (is_correct_file_permission($perm_file)) {
                $permission[$perm_file] = 'ok';
            } else {
                @chmod($perm_file, get_filepermission());
                if (is_correct_file_permission($perm_file)) {
                    $permission[$perm_file] = 'ok';
                } else {
                    $permission[$perm_file] = '<b>' . CHMOD_WARNING . '</b>';
                    $success = false;
                }
            }
        }
        $page = 'permissions.php';
    }
} elseif (isset($_POST['configurations'])) {
    $_POST['admin_username'] = openld_trim($_POST['admin_username']);
    $_POST['admin_password'] = openld_trim($_POST['admin_password']);
    $_POST['admin_email'] = strtolower(openld_trim($_POST['admin_email']));
    $_POST['site_title'] = openld_trim($_POST['site_title']);