Ejemplo n.º 1
0
$language = new language();
$language->get_languages();
$language->check_default();
$database = new Database();
if ($language->error) {
    $errors[] = $language->error;
}
$language->load(isset($_POST['language']) ? $_POST['language'] : ($language->detect() ? $language->detect() : 'en'));
$languages = $language->langs;
$step = isset($_REQUEST['step']) ? $_REQUEST['step'] : 1;
$files = array('config.php');
//,'admin'.DIRECTORY_SEPARATOR.'config.php'  Not Required
foreach ($files as $file) {
    $file = DIR_BASE . $file;
    if (!file_exists($file)) {
        $errors[] = $language->get('error_not_found', $file);
    } elseif (!is_writable($file)) {
        @chmod($file, 0666);
        if (!is_writable($file)) {
            $errors[] = $language->get('error_not_666', $file);
        }
    }
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title><?php 
echo $language->get('heading_title');
?>
Ejemplo n.º 2
0
//
$o = new language($data->data->id);
$o->details();
?>
<div class="title"><?php 
echo ucwords(LANGUAGE_EDIT_LANGUAGE);
?>
</div>
<div class="form">
    <div class="column">
        <div class="row name">
            <div class="caption"><?php 
echo ucwords(LANGUAGE_NAME);
?>
<input type="hidden" id="id" value="<?php 
echo $o->get('id');
?>
" /></div>
            <div class="value"><input class="input-text" type="text" value="<?php 
echo $o->get('name');
?>
" placeholder="<?php 
echo ucwords(LANGUAGE_NAME);
?>
" id="name"/></div>
        </div>
        <div class="row short">
            <div class="caption"><?php 
echo ucwords(LANGUAGE_SHORT);
?>
</div>
Ejemplo n.º 3
0
 function start()
 {
     $this->page = new Page(language::get('page_about'));
 }
Ejemplo n.º 4
0
if ($language->error) {
    $errors[] = $language->error;
}
$language->load(isset($_POST['language']) ? $_POST['language'] : ($language->detect() ? $language->detect() : 'en'));
$languages = $language->langs;
$step = isset($_REQUEST['step']) ? $_REQUEST['step'] : 1;
if (filesize('../config.php') > 0) {
    $step = 3;
}
if (file_exists(DIR_BASE . UPLOADC)) {
    $lines = array();
    $lines = file(DIR_BASE . UPLOADC);
    foreach ($lines as $line) {
        $line = DIR_BASE . substr(trim($line), 2);
        if (!file_exists($line)) {
            $errors[] = $language->get('error_not_found', $line);
        }
    }
} else {
    $errors[] = DIR_BASE . UPLOADC . $language->get('error_not_found');
}
$files0755 = array('image' . D_S, 'image' . D_S . 'cache' . D_S, 'image' . D_S . 'flash' . D_S, 'image' . D_S . 'mask' . D_S, 'image' . D_S . 'barcode' . D_S, 'image' . D_S . 'watermark' . D_S, 'download' . D_S, 'catalog' . D_S . 'javascript' . D_S . 'render' . D_S, 'catalog' . D_S . 'styles' . D_S . 'default' . D_S . 'render' . D_S);
foreach ($files0755 as $file) {
    $file = DIR_BASE . $file;
    if (!is_writable($file)) {
        @chmod($file, 0755);
        if (!is_writable($file)) {
            $errors[] = $language->get('error_not_777', $file);
        }
    }
}
Ejemplo n.º 5
0
 function start()
 {
     $this->page = new Page(language::get('page_login'));
 }