当前位置: 首页>>代码示例>>PHP>>正文


PHP language::get方法代码示例

本文整理汇总了PHP中language::get方法的典型用法代码示例。如果您正苦于以下问题:PHP language::get方法的具体用法?PHP language::get怎么用?PHP language::get使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在language的用法示例。


在下文中一共展示了language::get方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: language

$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');
?>
开发者ID:digitaldevelopers,项目名称:alegrocart,代码行数:31,代码来源:upgrade.php

示例2: ucwords

//
$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>
开发者ID:bushvin,项目名称:wingman,代码行数:31,代码来源:showitem.language.php

示例3: start

 function start()
 {
     $this->page = new Page(language::get('page_about'));
 }
开发者ID:biow0lf,项目名称:evedev-kb,代码行数:4,代码来源:about.php

示例4: isset

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);
        }
    }
}
开发者ID:digitaldevelopers,项目名称:alegrocart,代码行数:31,代码来源:index.php


注:本文中的language::get方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。