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


PHP Language::Get方法代码示例

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


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

示例1: show

 public static function show($console, $result, $data)
 {
     $text = '';
     $text .= Design::erstelleBeschreibung($console, Language::Get('extensions', 'description'));
     if (isset($result[self::$onEvents['check']['name']]) && $result[self::$onEvents['check']['name']] != null) {
         $result = $result[self::$onEvents['check']['name']];
     } else {
         $result = array('content' => null, 'fail' => false, 'errno' => null, 'error' => null);
     }
     $fail = $result['fail'];
     $error = $result['error'];
     $errno = $result['errno'];
     $content = $result['content'];
     if ($content != null) {
         foreach ($content as $extensionName => $status) {
             if (!$console) {
                 $text .= Design::erstelleZeile($console, $extensionName, 'e', $status ? Language::Get('main', 'ok') : "<font color='red'>" . Language::Get('main', 'fail') . "</font>", 'v');
             } else {
                 $text .= $extensionName . ' ' . ($status ? Language::Get('main', 'ok') : Language::Get('main', 'fail')) . "\n";
             }
         }
     } else {
         $text .= Design::erstelleZeile($console, "<font color='red'>" . Language::Get('main', 'fail') . "</font>", 'e');
     }
     echo Design::erstelleBlock($console, Language::Get('extensions', 'title'), $text);
     return null;
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:27,代码来源:PruefungErweiterungen.php

示例2: show

 public static function show($console, $result, $data)
 {
     $text = '';
     if (!$console) {
         $text .= Design::erstelleBeschreibung($console, Language::Get('database_informations', 'description'));
         $text .= Design::erstelleZeile($console, Language::Get('database_informations', 'db_path'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_path'], 'data[DB][db_path]', 'localhost', true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('database_informations', 'db_name'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_name'], 'data[DB][db_name]', 'uebungsplattform', true), 'v');
         echo Design::erstelleBlock($console, Language::Get('database_informations', 'title'), $text);
     }
     $text = '';
     if (!$console) {
         $text .= "<tr><td colspan='2'>" . Language::Get('databaseAdmin', 'description') . "</td></tr>";
         $text .= Design::erstelleZeile($console, Language::Get('databaseAdmin', 'db_user'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_user'], 'data[DB][db_user]', 'root', true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('databaseAdmin', 'db_passwd'), 'e', Design::erstellePasswortzeile($console, $data['DB']['db_passwd'], 'data[DB][db_passwd]', '', true), 'v');
         echo Design::erstelleBlock($console, Language::Get('databaseAdmin', 'title'), $text);
     }
     $text = '';
     if (!$console) {
         $text .= "<tr><td colspan='2'>" . Language::Get('databasePlatformUser', 'description') . "</td></tr>";
         $text .= Design::erstelleZeile($console, Language::Get('databasePlatformUser', 'db_user_operator'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_user_operator'], 'data[DB][db_user_operator]', 'DBOperator', true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('databasePlatformUser', 'db_passwd_operator'), 'e', Design::erstellePasswortzeile($console, $data['DB']['db_passwd_operator'], 'data[DB][db_passwd_operator]', '', true), 'v');
         echo Design::erstelleBlock($console, Language::Get('databasePlatformUser', 'title'), $text);
     }
     return null;
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:25,代码来源:DatenbankInformationen.php

示例3: show

 public static function show($console, $result, $data)
 {
     $isUpdate = isset($data['action']) && $data['action'] == 'update' ? true : false;
     $text = '';
     $text .= Design::erstelleBeschreibung($console, Language::Get('platform', 'description'));
     if (!$console) {
         $text .= Design::erstelleZeile($console, Language::Get('platform', 'createTables'), 'e', '', 'v', Design::erstelleSubmitButton(self::$onEvents['install']['event'][0]), 'h');
         $text .= Design::erstelleZeile($console, Language::Get('platform', 'details'), 'e', Design::erstelleAuswahl($console, $data['PL']['pl_details'], 'data[PL][pl_details]', 'details', null), 'v');
     }
     if (isset($result[self::$onEvents['install']['name']]) && $result[self::$onEvents['install']['name']] != null) {
         $result = $result[self::$onEvents['install']['name']];
     } else {
         $result = array('content' => null, 'fail' => false, 'errno' => null, 'error' => null);
     }
     $fail = $result['fail'];
     $error = $result['error'];
     $errno = $result['errno'];
     $content = $result['content'];
     if (self::$installed) {
         if (!$console && isset($data['PL']['pl_details']) && $data['PL']['pl_details'] === 'details' && !$isUpdate) {
             foreach ($content as $component => $dat) {
                 $text .= "<tr><td class='e' rowspan='1'>{$component}</td><td class='v'></td><td class='e'><div align ='center'>" . (isset($dat['status']) && $dat['status'] === 201 ? Language::Get('main', 'ok') : "<font color='red'>" . Language::Get('main', 'fail') . " ({$dat['status']})</font>") . "</align></td></tr>";
             }
         } else {
             $text .= Design::erstelleZeile($console, Language::Get('platform', 'countComponents'), 'e', count($content), 'v_c');
         }
         $text .= Design::erstelleInstallationszeile($console, $fail, $errno, $error);
     }
     echo Design::erstelleBlock($console, Language::Get('platform', 'title'), $text);
     return null;
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:31,代码来源:PlattformEinrichten.php

示例4: Check

 public static function Check(array $Post)
 {
     $SQL = SBB::SQL();
     if (!preg_match('/^[a-zA-Z0-9_\\-\\s]{4,32}$/', $Post['Username'])) {
         self::$Error[] = Language::Get('com.sbb.register.invalid_username');
     }
     if ($Post['Password'] != $Post['PasswordRepeat']) {
         self::$Error[] = Language::Get('com.sbb.register.incorrect_password');
     }
     if ($Post['Email'] != $Post['EmailRepeat']) {
         self::$Error[] = Language::Get('com.sbb.register.incorrect_email');
     }
     if (!preg_match('/^[a-z0-9\\-_]+\\@[a-z0-9\\-]+\\.[a-z]{2,3}$/', $Post['Email'])) {
         self::$Error[] = Language::Get('com.sbb.register.invalid_email');
     }
     $SQL->Select('users', 'UserName', 'Username = \'' . mysql_real_escape_string($Post['Username']) . '\'');
     if ($SQL->NumRows() == 1) {
         self::$Error[] = Language::Get('com.sbb.register.username_exist');
     }
     $SQL->Select('users', 'Email', 'Email = \'' . mysql_real_escape_string($Post['Email']) . '\'');
     if ($SQL->NumRows() == 1) {
         self::$Error[] = Language::Get('com.sbb.register.email_exist');
     }
     if (count(self::$Error) != 0) {
         return false;
     }
     return true;
 }
开发者ID:nicocode,项目名称:Board,代码行数:28,代码来源:Register.class.php

示例5: show

 public static function show($console, $result, $data)
 {
     $text = '';
     if (!$console) {
         $text .= Design::erstelleBeschreibung($console, Language::Get('general_settings', 'description'));
         $text .= Design::erstelleZeile($console, Language::Get('general_settings', 'init'), 'e', '', 'v', Design::erstelleSubmitButton('actionInstallInit'), 'h');
         $text .= Design::erstelleZeile($console, Language::Get('database', 'db_override'), 'e', Design::erstelleAuswahl($console, $data['DB']['db_override'], 'data[DB][db_override]', 'override', null, true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('database', 'db_ignore'), 'e', Design::erstelleAuswahl($console, $data['DB']['db_ignore'], 'data[DB][db_ignore]', 'ignore', null, true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('general_settings', 'details'), 'e', Design::erstelleAuswahl($console, $data['PL']['pl_main_details'], 'data[PL][pl_main_details]', 'details', null, true), 'v');
     }
     if (isset($result[self::$onEvents['install']['name']]) && $result[self::$onEvents['install']['name']] != null) {
         $result = $result[self::$onEvents['install']['name']];
     } else {
         $result = array('content' => null, 'fail' => false, 'errno' => null, 'error' => null);
     }
     $fail = $result['fail'];
     $error = $result['error'];
     $errno = $result['errno'];
     $content = $result['content'];
     if (self::$installed) {
         if ($data['PL']['pl_main_details'] == 'details') {
             foreach ($content as $component => $dat) {
                 if (!$console) {
                     $text .= "<tr><td class='e' rowspan='1'>{$component}</td><td class='v'></td><td class='e'><div align ='center'>" . (isset($dat['status']) && $dat['status'] === 201 ? Language::Get('main', 'ok') : "<font color='red'>" . Language::Get('main', 'fail') . " ({$dat['status']})</font>") . "</align></td></tr>";
                 } else {
                     $text .= "{$component}: " . (isset($dat['status']) && $dat['status'] === 201 ? Language::Get('main', 'ok') . "\n" : Language::Get('main', 'fail') . " ({$dat['status']})\n");
                 }
             }
         }
         $text .= Design::erstelleInstallationszeile($console, $fail, $errno, $error);
     }
     echo Design::erstelleBlock($console, Language::Get('general_settings', 'title'), $text);
     return null;
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:34,代码来源:GrundeinstellungenAusgeben.php

示例6: show

 public static function show($console, $result, $data)
 {
     $text = '';
     $text .= Design::erstelleBeschreibung($console, Language::Get('createSuperAdmin', 'description'));
     if (!$console) {
         $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_user_insert'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_user_insert'], 'data[DB][db_user_insert]', 'root'), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_passwd_insert'), 'e', Design::erstellePasswortzeile($console, $data['DB']['db_passwd_insert'], 'data[DB][db_passwd_insert]', ''), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_first_name_insert'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_first_name_insert'], 'data[DB][db_first_name_insert]', ''), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_last_name_insert'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_last_name_insert'], 'data[DB][db_last_name_insert]', ''), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('createSuperAdmin', 'db_email_insert'), 'e', Design::erstelleEingabezeile($console, $data['DB']['db_email_insert'], 'data[DB][db_email_insert]', ''), 'v', Design::erstelleSubmitButton(self::$onEvents['install']['event'][0], Language::Get('main', 'create')), 'h');
     }
     if (isset($result[self::$onEvents['install']['name']]) && $result[self::$onEvents['install']['name']] != null) {
         $result = $result[self::$onEvents['install']['name']];
     } else {
         $result = array('content' => null, 'fail' => false, 'errno' => null, 'error' => null);
     }
     $fail = $result['fail'];
     $error = $result['error'];
     $errno = $result['errno'];
     $content = $result['content'];
     if (self::$installed) {
         $text .= Design::erstelleInstallationszeile($console, $fail, $errno, $error);
     }
     echo Design::erstelleBlock($console, Language::Get('createSuperAdmin', 'title'), $text);
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:25,代码来源:BenutzerErstellen.php

示例7: showInfoBar

 public static function showInfoBar(&$data)
 {
     if (Einstellungen::$accessAllowed) {
         // Aktionen
         echo "<tr><td class='e'>" . Language::Get('main', 'actions') . "</td></tr>";
         // update-Button
         echo "<tr><td class='v'>" . Design::erstelleSubmitButtonFlach('update', 'OK', Language::Get('main', 'simpleUpdate') . ">") . "</td></tr>";
     }
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:9,代码来源:Aktionsleiste.php

示例8: showInfoBar

 public static function showInfoBar(&$data)
 {
     echo "<tr><td class='e'>" . Language::Get('main', 'serverList') . "</td></tr>";
     foreach (Einstellungen::$serverFiles as $serverFile) {
         $file = pathinfo($serverFile)['filename'];
         echo "<tr><td class='v'>" . Design::erstelleSubmitButtonFlach('server', $file, Einstellungen::$selected_server == $file ? '<font color="maroon">' . $file . '</font>' : $file) . "</td></tr>";
     }
     if (Einstellungen::$accessAllowed) {
         echo "<tr><td class='v'>" . Design::erstelleSubmitButtonFlach('actionAddServer', 'OK', Language::Get('main', 'addServer') . ">") . "</td></tr>";
     }
     echo Design::erstelleVersteckteEingabezeile(false, Einstellungen::$selected_server, 'selected_server', null);
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:12,代码来源:Serverliste.php

示例9: show

 public static function show($console, $result, $data)
 {
     $text = '';
     $failure = false;
     Einstellungen::$path = dirname(__FILE__) . '/../config';
     if (!is_dir(Einstellungen::$path) || !is_writable(__FILE__)) {
         $text .= Design::erstelleZeile($console, Language::Get('mainInfo', 'notWritable'), 'error');
         $failure = true;
     }
     if ($failure) {
         echo Design::erstelleBlock($console, Language::Get('mainInfo', 'title'), $text);
     }
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:13,代码来源:MainInfo.php

示例10: CheckUpdate

 public static function CheckUpdate(array $Post)
 {
     $Error = array();
     if (!preg_match('/^https?\\:\\/\\/[a-z0-9\\-\\.]+\\.[a-z]{2,3}$/', $Post['Homepage'])) {
         $Error[] = Language::Get('com.sbb.profile.invalid_homepage');
     }
     if (strlen($Post['Signature'] > 500)) {
         $Error[] = Language::Get('com.sbb.profile.signaturelength');
     }
     if (count($Error) != 0) {
         return $Error;
     }
     return true;
 }
开发者ID:nicocode,项目名称:Board,代码行数:14,代码来源:User.class.php

示例11: showInfoBar

 public static function showInfoBar(&$data)
 {
     // master-Passwort abfragen
     echo "<tr><td class='e'>" . Language::Get('main', 'masterPassword') . "</td></tr>";
     $serverHash = md5(Einstellungen::$selected_server);
     echo "<tr><td class='v'>" . Design::erstellePasswortzeile(false, Einstellungen::$masterPassword[$serverHash], 'tmp[' . $serverHash . '][masterPassword]', Einstellungen::$masterPassword[$serverHash]) . "</td></tr>";
     if (!Einstellungen::$accessAllowed) {
         echo "<tr><td class='v'>" . Design::erstelleSubmitButtonFlach('login', '1', Language::Get('main', 'getAccess')) . "</td></tr>";
     } else {
         if (trim(Einstellungen::$masterPassword[$serverHash]) == '') {
             echo "<tr><td class='error_light'>" . Language::Get('main', 'emptyMasterPassword') . "</td></tr>";
         }
         echo "<tr><td class='v'>" . Design::erstelleSubmitButtonFlach('changeMasterPassword', '1', Language::Get('main', 'changeMasterPassword') . ">") . "</td></tr>";
     }
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:15,代码来源:Zugangspasswort.php

示例12: show

 public static function show($console, $result, $data)
 {
     $text = '';
     $text .= Design::erstelleBeschreibung($console, Language::Get('general_informations', 'description'));
     if (!$console) {
         $text .= Design::erstelleZeile($console, Language::Get('general_informations', 'server_name'), 'e', Design::erstelleEingabezeile($console, $data['SV']['name'], 'data[SV][name]', $data['SV']['name'], false), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('general_informations', 'url'), 'e', Design::erstelleEingabezeile($console, $data['PL']['url'], 'data[PL][url]', 'http://localhost/uebungsplattform', true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('general_informations', 'localPath'), 'e', Design::erstelleEingabezeile($console, $data['PL']['localPath'], 'data[PL][localPath]', '/var/www/uebungsplattform', true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('general_informations', 'urlExtern'), 'e', Design::erstelleEingabezeile($console, $data['PL']['urlExtern'], 'data[PL][urlExtern]', 'http://localhost/uebungsplattform', true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('general_informations', 'temp'), 'e', Design::erstelleEingabezeile($console, $data['PL']['temp'], 'data[PL][temp]', '/var/www/temp', true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('general_informations', 'files'), 'e', Design::erstelleEingabezeile($console, $data['PL']['files'], 'data[PL][files]', '/var/www/files', true), 'v');
     }
     echo Design::erstelleBlock($console, Language::Get('general_informations', 'title'), $text);
     return null;
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:15,代码来源:Grundinformationen.php

示例13: Check

 public static function Check(array $Post)
 {
     $SQL = SBB::SQL();
     $SQL->Select('users', 'Salt, Password', 'Username = \'' . mysql_real_escape_string($Post['Username']) . '\'', '', 1);
     $Row = $SQL->FetchObject();
     if ($SQL->NumRows() == 1) {
         if (User::EncryptPassword($Post['Password'], $Row->Salt) != $Row->Password) {
             self::$Error[] = Language::Get('com.sbb.login.wrong_password');
         } else {
             return true;
         }
     } else {
         self::$Error[] = Language::Get('com.sbb.login.notexist_username');
     }
     return false;
 }
开发者ID:nicocode,项目名称:Board,代码行数:16,代码来源:Login.class.php

示例14: show

 public static function show($console, $result, $data)
 {
     $text = '';
     if (!$console) {
         $text .= Design::erstelleBeschreibung($console, Language::Get('access', 'description'));
         $text .= Design::erstelleZeile($console, Language::Get('access', 'local'), 'e', Design::erstelleGruppenAuswahl($console, $data['ZV']['zv_type'], 'data[ZV][zv_type]', 'local', 'local', true), 'v');
         $text .= Design::erstelleZeile($console, '&nbsp;', '', '', '');
         $text .= Design::erstelleZeile($console, Language::Get('access', 'ssh'), 'e', Design::erstelleGruppenAuswahl($console, $data['ZV']['zv_type'], 'data[ZV][zv_type]', 'ssh', null, true), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('access', 'username'), 'e', Design::erstelleEingabezeile($console, $data['ZV']['zv_ssh_login'], 'data[ZV][zv_ssh_login]', 'root'), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('access', 'address'), 'e', Design::erstelleEingabezeile($console, $data['ZV']['zv_ssh_address'], 'data[ZV][zv_ssh_address]', 'localhost'), 'v');
         $text .= Design::erstelleZeile($console, Language::Get('access', 'password'), 'e', Design::erstellePasswortzeile($console, $data['ZV']['zv_ssh_password'], 'data[ZV][zv_ssh_password]', ''), 'v', Design::erstelleGruppenAuswahl($console, $data['ZV']['zv_ssh_auth_type'], 'data[ZV][zv_ssh_auth_type]', 'passwd', 'passwd', true), 'h');
         $text .= Design::erstelleZeile($console, Language::Get('access', 'keyFile'), 'e', Design::erstelleEingabezeile($console, $data['ZV']['zv_ssh_key_file'], 'data[ZV][zv_ssh_key_file]', '/var/public.ppk'), 'v', Design::erstelleGruppenAuswahl($console, $data['ZV']['zv_ssh_auth_type'], 'data[ZV][zv_ssh_auth_type]', 'keyFile', null, true), 'h');
         echo Design::erstelleBlock($console, Language::Get('access', 'title'), $text);
     }
     return null;
 }
开发者ID:sawh,项目名称:ostepu-system,代码行数:16,代码来源:ZugangAusgeben.php

示例15: Render

 public static function Render()
 {
     $Active = SBB::Page()->GetInfo('Menu');
     if (isset(self::$ReservedLinks['menu.' . strtolower($Active)])) {
         $Active = 'menu.' . strtolower($Active);
     }
     $MenuList = array();
     $Entries = SBB::SQL()->GetObjects()->Select('menu', '*', NULL, 'Position');
     foreach ($Entries as $Row) {
         if (isset(self::$ReservedLinks[$Row->Target])) {
             $MenuList[] = array('Link' => self::$ReservedLinks[$Row->Target], 'Name' => Language::Get($Row->MenuName), 'Active' => $Active == $Row->Target ? true : false);
         } else {
             $Target = str_replace('?page=', '', $Row - Target);
             $Target = strpos($Target, '&') !== false ? strstr($Target, '&', true) : $Target;
             $MenuList[] = array('Link' => $Row->Target, 'Name' => Language::Get($Row->MenuName), 'Active' => $Active == $Target ? true : false);
         }
     }
     SBB::Template()->Assign(array('Menu' => $MenuList));
 }
开发者ID:nicocode,项目名称:Board,代码行数:19,代码来源:Menu.class.php


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