/*** server4education ***/ /** * Check if home folder is mounted, mount if not */ public static function checkHomeMounted(){ // Check if home folder is mounted if (!OC_Filesystem::is_dir('/Home')) { OC_Filesystem::mkdir('/Home'); exec("sudo /usr/local/bin/mounthome ".OC_User::getUser()." ".$_SESSION['user_password']); } foreach(self::getS4eShares() as $share) { if (!OC_Filesystem::is_dir('/'.$share)) { OC_Filesystem::mkdir('/'.$share); exec("sudo /usr/local/bin/mountshare ".OC_User::getUser()." ".$_SESSION['user_password']." ".$share); } } exec("logger \"".OC_User::getUser()." - cloud4education ".`date +%s`."\""); $_SESSION['user_password'] = ""; } /*** server4education ***/