body,th,td,ul,li,a,div,p,pre {color:#333333; font-family:Verdana,"Bitstream Vera Sans",Arial,Helvetica,Sans,"Bitstream Vera Serif"; font-size:9.0pt;}
body,th,td,ul,li,a,div,p,pre {color:#333333; font-family:Verdana,"Bitstream Vera Sans",Arial,Helvetica,Sans,"Bitstream Vera Serif"; font-size: 0.95em;}
a img {
border:none;
@ -97,22 +98,22 @@ td.nametext{
display:block;
}
.nametext a, .breadcrumb a{color:#333333; font-size:8pt; font-weight:bold; text-decoration:none;}
return true;//dummy untill premissions are correctly implemented, also the correcty value because for now users are locked in their seperate data dir and can read/write everything in there
}
/**
@ -42,7 +48,13 @@ class OC_FILESYSTEM{
* @param string path
* @return bool
*/
static private function canWrite(){
static private function canWrite($path){
if(substr($path,0,1)!=='/'){
$path='/'.$path;
}
if(strstr($path,'/../')){
return false;
}
return true;//dummy untill premissions are correctly implemented, also the correcty value because for now users are locked in their seperate data dir and can read/write everything in there
}
@ -266,5 +278,19 @@ class OC_FILESYSTEM{
}
return $return;
}
static public function getTree($path){
if(self::canRead($path) and $storage=self::getStorage($path)){
<trid='dbpass'><td>database password:</td><td><inputtype="password"name="dbpassword"size="30"class="formstyle"value=''></input></td><td>(leave empty to keep current password)</td></tr>
<trid='dbcreaterow'><td>create database and user:</td><td><inputid='dbcreate'type="checkbox"name="createdatabase"size="30"class="formstyle"value='1'<?phpif($FIRSTRUN)echo'checked';?>onchange='showDBAdmin()'></input></td></tr>
<trid='dbcreaterow'><td>create database and user:</td><td><inputid='dbcreate'type="checkbox"name="createdatabase"size="30"class="formstyle"value='1'<?phpif($FIRSTRUN)echo'checked="checked"';?>onchange='showDBAdmin()'></input></td></tr>
<trid='dbfill'><td>automaticly fill initial database:</td><td><inputtype="checkbox"name="filldb"size="30"class="formstyle"value='1'<?phpif($FIRSTRUN)echo'checked';?>></input></td></tr>
<trid='dbfill'><td>automaticly fill initial database:</td><td><inputtype="checkbox"name="filldb"size="30"class="formstyle"value='1'<?phpif($FIRSTRUN)echo'checked="checked"';?>></input></td></tr>