Permalink
Browse files

doodle code

  • Loading branch information...
1 parent 9fc512e commit 2ce32fd5c9402becf6c64fc3ab76799966121e44 @xianglei committed Jun 11, 2012
Showing with 12 additions and 5 deletions.
  1. +1 −1 langs/lang_cn.php
  2. +1 −1 langs/lang_en.php
  3. +1 −1 libs/classes/class.auth.php
  4. +9 −2 sqlAssembler.php
View
@@ -24,7 +24,7 @@
$lang['select'] = '全选';
$lang['deselect'] = '取消全选';
$lang['alterTableWarning'] = '变更表的字段属性,请小心操作';
-$lang['fileBrowser'] = "文件浏览";
+$lang['fileBrowser'] = "HDFS浏览";
$lang['filename'] = "文件名";
$lang['filesize'] = "文件大小";
$lang['tableName'] = "表名";
View
@@ -24,7 +24,7 @@
$lang['select'] = 'Select All';
$lang['deselect'] = 'DeSelect All';
$lang['alterTableWarning'] = 'Alter Table columns, Please be careful';
-$lang['fileBrowser'] = "File Browser";
+$lang['fileBrowser'] = "HDFS Browser";
$lang['filename'] = "Filename";
$lang['filesize'] = "Filesize";
$lang['tableName'] = "Table name: ";
@@ -99,7 +99,7 @@ public function AuthMapReduceSlots($pAuthFilename,$pUsername,$pPassword)
public function AuthSql($pPrivilege,$pSql)
{
- if(preg_match("/\bcreate\b/i",$pSql) || preg_match("/\bdrop\b/i",$pSql) || preg_match("/\balter\b/i",$pSql) || preg_match("/\binsert\b/i",$pSql) || preg_match("/\bload\b/i",$pSql))
+ if(preg_match("/\bcreate\b/i",$pSql) || preg_match("/\bdrop\b/i",$pSql) || preg_match("/\balter\b/i",$pSql) || preg_match("/\binsert\b/i",$pSql) || preg_match("/\bload\b/i",$pSql) || preg_match("/\bset\b/i",$pSql))
{
if($pPrivilege != "all")
{
View
@@ -5,10 +5,17 @@
if(!$_GET['database'] || '' == $_GET['database'])
{
- die($lang['dieTableChoose']);
+ die($lang['dieDatabaseChoose']);
}
else
{
-
+ if(!$_GET['table'] || '' == $_GET['table'])
+ {
+ die($lang['dieTableChoose']);
+ }
+ else
+ {
+
+ }
}
?>

0 comments on commit 2ce32fd

Please sign in to comment.