Skip to content

Commit

Permalink
tblprefix compatible, base62x introduced in, return to previous after…
Browse files Browse the repository at this point in the history
… login.
  • Loading branch information
wadelau committed Sep 13, 2016
1 parent 82ad745 commit 2e1dece
Show file tree
Hide file tree
Showing 12 changed files with 446 additions and 27 deletions.
2 changes: 1 addition & 1 deletion act/deepsearch.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
$hiddenfields .= "<input type=\"hidden\" name=\"".$field."\" id=\"".$field."\" value=\"".$hmorig[$field]."\"/>\n";
}
if($gtbl->filterHiddenField($field, $opfield,$timefield)){
continue;
#continue;
}
if($field == 'password'){
$hmorig[$field] = '';
Expand Down
8 changes: 2 additions & 6 deletions act/doaddmodi.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,16 +82,15 @@
mkdir($appdir."/".$filedir);
}
$filename = basename($_FILES[$field]['name']);
$filename = `$appdir/comm/base62x -encode "$filename"`;
$filename = str_replace("\n", "", $filename);
$filename = Base62x::encode($filename);
$filename = date("dHi")."_".substr($filename,0,64).".".$tmpfileext;
#print __FILE__.": filename:[$filename]";
if(move_uploaded_file($_FILES[$field]['tmp_name'], $appdir."/".$filedir."/".$filename)){
$out .= __FILE__.": file:[$filedir/$filename] succ.";
}else{
$out .= __FILE__.": file:[$filename] fail. 201202251535";
}
#$fieldv = $filedir."/".$filename;
#$fieldv = $filedir."/".$filename;
$fieldv = $shortDirName."/".$filedir."/".$filename;
$filearr['filename'] = basename($_FILES[$field]['name']); # sometimes original name may be different with uploadedfile.
$filearr['filesize'] = $_FILES[$field]['size'];
Expand All @@ -100,9 +99,6 @@

}else if($gtbl->getSelectMultiple($field)){

#print __FILE__;
#print_r($_REQUEST);

if(is_array($_REQUEST[$field])){
$fieldv = implode(",", $_REQUEST[$field]);
}else{
Expand Down
2 changes: 1 addition & 1 deletion act/updateobjecttbl.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
$hm = $hm[1];
#print_r($hm);
foreach($hm as $k=>$v){
$tbl = $v['Tables_in_'.strtolower($db)];
$tbl = $v['Tables_in_'.trim($db)];
#print "$k => ".$tbl."\n";
if($tbl != ""){
$tmpconf = GTbl::xml2hash($xmlpathpre, $elementsep, $db, $tbl);
Expand Down
Loading

0 comments on commit 2e1dece

Please sign in to comment.