$result = $query->execute();
return true;
}
-}
-?>
+}
\ No newline at end of file
$tmpl->assign('new', true);
$tmpl->assign('addressbook', $book);
$tmpl->printPage();
-?>
}
}
OCP\JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('Error setting checksum.'))));
-?>
debug('After delete: '.print_r($catman->categories(), true));
OC_Contacts_VCard::updateDataByID($cards);
OCP\JSON::success(array('data' => array('categories'=>$catman->categories())));
-
-?>
$categories = OC_Contacts_App::getCategories();
OCP\JSON::success(array('data' => array('categories'=>$categories)));
-
-?>
$categories = OC_Contacts_App::getCategories();
OCP\JSON::success(array('data' => array('categories'=>$categories)));
-
-?>
bailOut(OC_Contacts_App::$l10n->t('The loading photo is not valid.'));
}
}
-
-?>
$page = $tmpl->fetchPage();
OCP\JSON::success(array('data' => array('page'=>$page, 'checksum'=>$checksum)));
-
-?>
$tmpl->assign('new', false);
$tmpl->assign('addressbook', $addressbook);
$tmpl->printPage();
-?>
}
$page = $tmpl->fetchPage();
OCP\JSON::success(array('data' => array('page'=>$page)));
-
-?>
$tmpl->assign('requesttoken', $_SERVER['HTTP_REQUESTTOKEN']);
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
$tmpl->printpage();
-?>
$tmpl->assign('path', $_POST['path']);
$tmpl->assign('filename', $_POST['filename']);
$tmpl->printpage();
-?>
} else {
bailOut('Couldn\'t save temporary image: '.$tmpkey);
}
-
-?>
} else {
bailOut('Temporary file: \''.$file['tmp_name'].'\' has gone AWOL?');
}
-
-
-?>
} else {
bailOut('Temporary file: \''.$file['tmp_name'].'\' has gone AWOL?');
}
-?>
header('Content-Disposition: inline; filename=' . str_replace(' ', '_', $data['fullname']) . '.vcf');
echo $data['carddata'];
}
-?>
$tmpl->assign('details', $details );
$tmpl->assign('id',$id);
$tmpl->printPage();
-
-?>
$tmpl->assign('addressbooks', OC_Contacts_Addressbook::all(OCP\USER::getUser()), false);
return $tmpl->fetchPage();
-?>
OCP\Config::setAppValue('external', 'sites', json_encode($sites));
echo 'true';
-?>
$tmpl->printPage();
}
}
-?>
$tmpl = new OCP\Template( 'external', 'settings');
return $tmpl->fetchPage();
-?>
}
}
OCP\JSON::encodedPrint($files);
-
-?>
} else {
OCP\JSON::error(array("data" => array( "message" => "Could not delete:\n" . $filesWithError )));
}
-
-?>
$dir = $_GET["dir"];
OC_Files::get($dir, $files, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
-?>
$data = array('files' => $list->fetchPage());
OCP\JSON::success(array('data' => $data));
-
-?>
print OC_Helper::mimetypeIcon($_GET['mime']);
-
-?>
}else{
OCP\JSON::error(array("data" => array( "message" => "Could not move $file" )));
}
-
-?>
}
OCP\JSON::success(array('data' => $files));
-
-?>
else{
OCP\JSON::error(array("data" => array( "message" => "Unable to rename file" )));
}
-
-?>
// see lib/base.php for an example
//session_start();
$_SESSION['timezone'] = $_GET['time'];
-?>
+
\ No newline at end of file
}
OCP\JSON::error(array('data' => array('error' => $error, "file" => $fileName)));
-
-?>
@ob_end_clean();
OC_Filesystem::readfile( $filename );
-?>
$tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
$tmpl->assign( 'allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
$tmpl->printPage();
-
-?>
$tmpl->assign( 'files', $files );
$tmpl->assign( "breadcrumb", $breadcrumb );
$tmpl->printPage();
-
-?>
$isPersonal = false;
}
OC_Mount_Config::addMountPoint($_POST['mountPoint'], $_POST['class'], $_POST['classOptions'], $_POST['mountType'], $_POST['applicable'], $isPersonal);
-
-?>
$isPersonal = false;
}
OC_Mount_Config::removeMountPoint($_POST['mountPoint'], $_POST['mountType'], $_POST['applicable'], $isPersonal);
-
-?>
OCP\Util::addscript('files_imageviewer', 'jquery.mousewheel-3.0.4.pack');
OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.4.pack');
OCP\Util::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
-
-?>
OCP\Util::addscript( 'files_pdfviewer', 'viewer');
OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/build/pdf');
OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/viewer');
-?>
$text = $user.' shared the '.$type.' '.$_POST['file'].' with you. It is available for download here: '.$link;
$fromaddress = OCP\Config::getUserValue($user, 'settings', 'email', 'sharing-noreply@'.OCP\Util::getServerHost());
OC_Mail::send($_POST['toaddress'], $_POST['toaddress'], $subject, $text, $fromaddress, $user);
-
-?>
}
OCP\JSON::success(array('data' => $item));
-
-?>
}
OCP\JSON::success(array('data' => $items));
-
-?>
OC_Share::setPermissions($source, $uid_shared_with, $permissions);
OCP\JSON::success();
-
-?>
} else {
OCP\Config::setAppValue('files_sharing', 'resharing', 'no');
}
-
-?>
OC_Share::unshare($source, $uid_shared_with);
OCP\JSON::success();
-
-?>
$groups[] = "</optgroup>";
$users = array_merge($users, $groups);
OCP\JSON::encodedPrint($users);
-
-?>
$tmpl->printPage();
die();
}
-?>
$tmpl = new OCP\Template("files_sharing", "list", "user");
$tmpl->assign("shared_items", OC_Share::getMySharedItems());
$tmpl->printPage();
-
-?>
OCP\Util::addStyle( 'files_texteditor', 'style' );
OCP\Util::addscript( 'files_texteditor', 'editor');
OCP\Util::addscript( 'files_texteditor', 'aceeditor/ace');
-?>
} else {
OCP\Config::setSystemValue('versions', 'true');
}
-
-?>
}
$tmpl->printPage( );
-
-?>
}
}
- /**\r
- * @brief Erase versions of deleted file\r
- * @param array\r
- *\r
- * This function is connected to the delete signal of OC_Filesystem\r
- * cleanup the versions directory if the actual file gets deleted\r
- */\r
- public static function remove_hook($params) {\r
- $rel_path = $params['path'];\r
- $abs_path = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_path.'.v';\r
- if(Storage::isversioned($rel_path)) {\r
- $versions = Storage::getVersions($rel_path);\r
- foreach ($versions as $v){\r
- unlink($abs_path . $v['version']);\r
- }\r
- }\r
- }\r
- \r
- /**\r
- * @brief rename/move versions of renamed/moved files\r
- * @param array with oldpath and newpath\r
- *\r
- * This function is connected to the rename signal of OC_Filesystem and adjust the name and location\r
- * of the stored versions along the actual file\r
- */\r
- public static function rename_hook($params) {\r
- $rel_oldpath = $params['oldpath'];\r
- $abs_oldpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_oldpath.'.v';\r
- $abs_newpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$params['newpath'].'.v';\r
- if(Storage::isversioned($rel_oldpath)) {\r
- $versions = Storage::getVersions($rel_oldpath);\r
- foreach ($versions as $v){\r
- rename($abs_oldpath.$v['version'], $abs_newpath.$v['version']);\r
- }\r
- }\r
+ /**
+ * @brief Erase versions of deleted file
+ * @param array
+ *
+ * This function is connected to the delete signal of OC_Filesystem
+ * cleanup the versions directory if the actual file gets deleted
+ */
+ public static function remove_hook($params) {
+ $rel_path = $params['path'];
+ $abs_path = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_path.'.v';
+ if(Storage::isversioned($rel_path)) {
+ $versions = Storage::getVersions($rel_path);
+ foreach ($versions as $v){
+ unlink($abs_path . $v['version']);
+ }
+ }
+ }
+
+ /**
+ * @brief rename/move versions of renamed/moved files
+ * @param array with oldpath and newpath
+ *
+ * This function is connected to the rename signal of OC_Filesystem and adjust the name and location
+ * of the stored versions along the actual file
+ */
+ public static function rename_hook($params) {
+ $rel_oldpath = $params['oldpath'];
+ $abs_oldpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_oldpath.'.v';
+ $abs_newpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$params['newpath'].'.v';
+ if(Storage::isversioned($rel_oldpath)) {
+ $versions = Storage::getVersions($rel_oldpath);
+ foreach ($versions as $v){
+ rename($abs_oldpath.$v['version'], $abs_newpath.$v['version']);
+ }
+ }
}
}
-
-?>
$tmpl = new OCP\Template( 'files_versions', 'settings');
return $tmpl->fetchPage();
-?>
OC_Gallery_Album::create(OCP\USER::getUser(), $_GET['album_name']);
OCP\JSON::success(array('name' => $_GET['album_name']));
-
-?>
OCP\JSON::error(array('cause' => 'Unknown operation'));
}
}
-?>
$tmpl->assign('root', $root, false);
$tmpl->assign('tl', $tl, false);
$tmpl->printPage();
-?>
//TODO: implement this
}
}
-
-?>
imagedestroy($process);
imagedestroy($myImage);
}
-
-?>
}
public function delete($path) {
- $thumbnail = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path;\r
- if (file_exists($thumbnail)) {\r
- unlink($thumbnail);\r
+ $thumbnail = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path;
+ if (file_exists($thumbnail)) {
+ unlink($thumbnail);
}
}
private function __construct() {}
}
-?>
private $tiles_array;
private $stack_name;
}
-
-?>
OCP\Config::setUserValue(OCP\USER::getUser(),'media','autoupdate',(integer)$autoUpdate);
OCP\JSON::success(array('data' => $autoUpdate));
-?>
$tmpl = new OCP\Template( 'media', 'music', 'user' );
$tmpl->printPage();
-?>
-
echo('</root>');
}
}
-
-?>
$query->execute(array($newPath,$oldPath));
}
}
-
-?>
$tmpl = new OCP\Template( 'media', 'settings');
return $tmpl->fetchPage();
-?>
$tmpl = new OCP\Template( 'remoteStorage', 'settings');
return $tmpl->fetchPage();
-?>
'href' => OCP\Util::linkTo( "user_migrate", "admin.php" ),
'name' => 'Import'
);
-?>
debug("Run mode: $run_mode at: " . time());
debug($_REQUEST, 'Request params');
call_user_func($run_mode . '_mode');
-?>
$IDENTITY=OCP\Util::linkToAbsolute( "user_openid", "user.php" ).'/'.$USERNAME;
require_once 'phpmyid.php';
-
-
-?>
}
OC_JSON::encodedPrint($groups);
-
-?>
$l = OC_L10N::get( $app );
OC_JSON::success(array('data' => $l->getTranslations()));
-?>
}
OC_JSON::encodedPrint($users);
-
-?>
OC_JSON::encodedPrint(array("username" => $_SERVER["PHP_AUTH_USER"], "user_valid" => "false"));
}
}
-
-?>
}
OC_JSON::success(array('data' => array('categories'=>$categories->categories())));
-
-?>
$vcategories = new OC_VCategories($app);
$vcategories->delete($categories);
OC_JSON::success(array('data' => array('categories'=>$vcategories->categories())));
-
-?>
debug(print_r($categories, true));
$tmpl->assign('categories',$categories);
$tmpl->printpage();
-
-?>
$l->t("Apps");
$l->t("Admin");
$l->t("Help");
-?>
class Template extends \OC_Template {
}
-
-
-?>
return(\OC_Helper::mb_str_replace($search, $replace, $subject, $encoding, $count));
}
}
-
-?>
file_put_contents(OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data').'/index.html', '');
}
}
-
-?>
</provider>
</providers>
');
-
-
-?>
require_once('../lib/base.php');
@ob_clean();
OC_OCS::handle();
-
-?>
}else{
echo 'false';
}
-
-?>
$tmpl = new OC_Template( 'search', 'index', 'user' );
$tmpl->assign('resultTypes',$resultTypes);
$tmpl->printPage();
-
-?>
else{
OC_JSON::error(array("data" => array( "message" => "Unable to change password" )));
}
-
-?>
else{
OC_JSON::error(array("data" => array( "message" => "Unable to add group" )));
}
-
-?>
} catch (Exception $exception) {
OC_JSON::error(array("data" => array( "message" => $exception->getMessage())));
}
-
-?>
}else{
OC_JSON::error(array("data" => array( "message" => $l->t("Invalid email") )));
}
-
-?>
}else{
OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
}
-
-?>
else{
OC_JSON::error(array("data" => array( "message" => "Unable to delete group" )));
}
-
-?>
else{
OC_JSON::error(array("data" => array( "message" => "Unable to delete user" )));
}
-
-?>
}else{
OC_JSON::error(array("data" => array( "message" => $l->t("Invalid request") )));
}
-
-?>
}
OC_JSON::success(array("data" => array( "username" => $username ,'quota'=>$quota)));
-?>
else{
OC_JSON::error(array("data" => array( "message" => "Unable to $error group $group" )));
}
-
-?>
$tmpl->assign('appid',$appid);
$tmpl->printPage();
-
-?>
$tmpl->assign( "pagecount", $pagecount );
$tmpl->assign( "page", $page );
$tmpl->printPage();
-
-?>
// calculate the disc space
$rootInfo=OC_FileCache::get('');
-$sharedInfo=OC_FileCache::get('/Shared');\r
+$sharedInfo=OC_FileCache::get('/Shared');
$used=$rootInfo['size']-$sharedInfo['size'];
$free=OC_Filesystem::free_space();
$total=$free+$used;
$tmpl->append('forms',$form);
}
$tmpl->printPage();
-
-?>
$tmpl->assign( 'default_quota', $defaultQuota);
$tmpl->assign( 'share_notice', $shareNotice);
$tmpl->printPage();
-
-?>
-
$values=array('installed'=>$installed,'version'=>implode('.',OC_Util::getVersion()),'versionstring'=>OC_Util::getVersionString(),'edition'=>OC_Util::getEditionString());
echo(json_encode($values));
-
-
-?>