@@ -145,5 +145,4 @@ class OC_Bookmarks_Bookmarks{ | |||
$result = $query->execute(); | |||
return true; | |||
} | |||
} | |||
?> | |||
} |
@@ -17,4 +17,3 @@ $tmpl = new OCP\Template('contacts', 'part.editaddressbook'); | |||
$tmpl->assign('new', true); | |||
$tmpl->assign('addressbook', $book); | |||
$tmpl->printPage(); | |||
?> |
@@ -25,4 +25,3 @@ foreach($vcard->children as $property){ | |||
} | |||
} | |||
OCP\JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('Error setting checksum.')))); | |||
?> |
@@ -45,5 +45,3 @@ $catman->delete($categories, $cards); | |||
debug('After delete: '.print_r($catman->categories(), true)); | |||
OC_Contacts_VCard::updateDataByID($cards); | |||
OCP\JSON::success(array('data' => array('categories'=>$catman->categories()))); | |||
?> |
@@ -13,5 +13,3 @@ OCP\JSON::checkAppEnabled('contacts'); | |||
$categories = OC_Contacts_App::getCategories(); | |||
OCP\JSON::success(array('data' => array('categories'=>$categories))); | |||
?> |
@@ -14,5 +14,3 @@ OC_Contacts_App::scanCategories(); | |||
$categories = OC_Contacts_App::getCategories(); | |||
OCP\JSON::success(array('data' => array('categories'=>$categories))); | |||
?> |
@@ -51,5 +51,3 @@ if( is_null($contact)) { | |||
bailOut(OC_Contacts_App::$l10n->t('The loading photo is not valid.')); | |||
} | |||
} | |||
?> |
@@ -39,5 +39,3 @@ $tmpl->assign('adr_types',$adr_types); | |||
$page = $tmpl->fetchPage(); | |||
OCP\JSON::success(array('data' => array('page'=>$page, 'checksum'=>$checksum))); | |||
?> |
@@ -14,4 +14,3 @@ $tmpl = new OCP\Template("contacts", "part.editaddressbook"); | |||
$tmpl->assign('new', false); | |||
$tmpl->assign('addressbook', $addressbook); | |||
$tmpl->printPage(); | |||
?> |
@@ -32,5 +32,3 @@ if($id) { | |||
} | |||
$page = $tmpl->fetchPage(); | |||
OCP\JSON::success(array('data' => array('page'=>$page))); | |||
?> |
@@ -21,4 +21,3 @@ $tmpl->assign('uploadMaxFilesize', $maxUploadFilesize); | |||
$tmpl->assign('requesttoken', $_SERVER['HTTP_REQUESTTOKEN']); | |||
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); | |||
$tmpl->printpage(); | |||
?> |
@@ -13,4 +13,3 @@ $tmpl = new OCP\Template('contacts', 'part.import'); | |||
$tmpl->assign('path', $_POST['path']); | |||
$tmpl->assign('filename', $_POST['filename']); | |||
$tmpl->printpage(); | |||
?> |
@@ -58,5 +58,3 @@ if(OC_Cache::set($tmpkey, $image->data(), 600)) { | |||
} else { | |||
bailOut('Couldn\'t save temporary image: '.$tmpkey); | |||
} | |||
?> |
@@ -70,6 +70,3 @@ if(file_exists($file['tmp_name'])) { | |||
} else { | |||
bailOut('Temporary file: \''.$file['tmp_name'].'\' has gone AWOL?'); | |||
} | |||
?> |
@@ -102,4 +102,3 @@ if(file_exists($file['tmp_name'])) { | |||
} else { | |||
bailOut('Temporary file: \''.$file['tmp_name'].'\' has gone AWOL?'); | |||
} | |||
?> |
@@ -32,4 +32,3 @@ if(isset($bookid)){ | |||
header('Content-Disposition: inline; filename=' . str_replace(' ', '_', $data['fullname']) . '.vcf'); | |||
echo $data['carddata']; | |||
} | |||
?> |
@@ -73,5 +73,3 @@ $tmpl->assign('addressbooks', $addressbooks); | |||
$tmpl->assign('details', $details ); | |||
$tmpl->assign('id',$id); | |||
$tmpl->printPage(); | |||
?> |
@@ -4,4 +4,3 @@ $tmpl = new OCP\Template( 'contacts', 'settings'); | |||
$tmpl->assign('addressbooks', OC_Contacts_Addressbook::all(OCP\USER::getUser()), false); | |||
return $tmpl->fetchPage(); | |||
?> |
@@ -23,4 +23,3 @@ else | |||
OCP\Config::setAppValue('external', 'sites', json_encode($sites)); | |||
echo 'true'; | |||
?> |
@@ -40,4 +40,3 @@ if (isset($_GET['id'])) { | |||
$tmpl->printPage(); | |||
} | |||
} | |||
?> |
@@ -32,5 +32,3 @@ class OC_External { | |||
} | |||
} | |||
?> |
@@ -7,4 +7,3 @@ OCP\Util::addscript( "external", "admin" ); | |||
$tmpl = new OCP\Template( 'external', 'settings'); | |||
return $tmpl->fetchPage(); | |||
?> |
@@ -52,5 +52,3 @@ if(OC_Filesystem::file_exists($base) and OC_Filesystem::is_dir($base)){ | |||
} | |||
} | |||
OCP\JSON::encodedPrint($files); | |||
?> |
@@ -26,5 +26,3 @@ if($success) { | |||
} else { | |||
OCP\JSON::error(array("data" => array( "message" => "Could not delete:\n" . $filesWithError ))); | |||
} | |||
?> |
@@ -34,4 +34,3 @@ $files = $_GET["files"]; | |||
$dir = $_GET["dir"]; | |||
OC_Files::get($dir, $files, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false); | |||
?> |
@@ -42,5 +42,3 @@ $list->assign( "files", $files, false ); | |||
$data = array('files' => $list->fetchPage()); | |||
OCP\JSON::success(array('data' => $data)); | |||
?> |
@@ -7,5 +7,3 @@ $RUNTIME_NOAPPS=false; | |||
print OC_Helper::mimetypeIcon($_GET['mime']); | |||
?> |
@@ -17,5 +17,3 @@ if(OC_Files::move($dir,$file,$target,$file)){ | |||
}else{ | |||
OCP\JSON::error(array("data" => array( "message" => "Could not move $file" ))); | |||
} | |||
?> |
@@ -22,5 +22,3 @@ foreach( OC_Files::getdirectorycontent( $dir, $mimetype ) as $i ){ | |||
} | |||
OCP\JSON::success(array('data' => $files)); | |||
?> |
@@ -18,5 +18,3 @@ if( OC_Files::move( $dir, $file, $dir, $newname )) { | |||
else{ | |||
OCP\JSON::error(array("data" => array( "message" => "Unable to rename file" ))); | |||
} | |||
?> |
@@ -3,4 +3,4 @@ | |||
// see lib/base.php for an example | |||
//session_start(); | |||
$_SESSION['timezone'] = $_GET['time']; | |||
?> | |||
@@ -60,5 +60,3 @@ if(strpos($dir,'..') === false){ | |||
} | |||
OCP\JSON::error(array('data' => array('error' => $error, "file" => $fileName))); | |||
?> |
@@ -46,4 +46,3 @@ header('Content-Length: '.OC_Filesystem::filesize($filename)); | |||
@ob_end_clean(); | |||
OC_Filesystem::readfile( $filename ); | |||
?> |
@@ -98,5 +98,3 @@ $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize); | |||
$tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); | |||
$tmpl->assign( 'allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true))); | |||
$tmpl->printPage(); | |||
?> |
@@ -56,5 +56,3 @@ $tmpl = new OCP\Template( "files", "index", "user" ); | |||
$tmpl->assign( 'files', $files ); | |||
$tmpl->assign( "breadcrumb", $breadcrumb ); | |||
$tmpl->printPage(); | |||
?> |
@@ -11,5 +11,3 @@ if ($_POST['isPersonal'] == 'true') { | |||
$isPersonal = false; | |||
} | |||
OC_Mount_Config::addMountPoint($_POST['mountPoint'], $_POST['class'], $_POST['classOptions'], $_POST['mountType'], $_POST['applicable'], $isPersonal); | |||
?> |
@@ -11,5 +11,3 @@ if ($_POST['isPersonal'] == 'true') { | |||
$isPersonal = false; | |||
} | |||
OC_Mount_Config::removeMountPoint($_POST['mountPoint'], $_POST['mountType'], $_POST['applicable'], $isPersonal); | |||
?> |
@@ -45,6 +45,3 @@ if (!is_array($config) or !isset($config['amazons3']) or !$config['amazons3']['r | |||
} | |||
} | |||
} | |||
?> | |||
@@ -4,5 +4,3 @@ OCP\Util::addscript( 'files_imageviewer', 'lightbox' ); | |||
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' ); | |||
?> |
@@ -6,4 +6,3 @@ OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/compatibility'); | |||
OCP\Util::addscript( 'files_pdfviewer', 'viewer'); | |||
OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/build/pdf'); | |||
OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/viewer'); | |||
?> |
@@ -11,5 +11,3 @@ $link = $_POST['link']; | |||
$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); | |||
?> |
@@ -64,5 +64,3 @@ while ($path != $userDirectory) { | |||
} | |||
OCP\JSON::success(array('data' => $item)); | |||
?> |
@@ -20,5 +20,3 @@ if ($rows = OC_Share::getMySharedItems()) { | |||
} | |||
OCP\JSON::success(array('data' => $items)); | |||
?> |
@@ -10,5 +10,3 @@ $permissions = $_POST['permissions']; | |||
OC_Share::setPermissions($source, $uid_shared_with, $permissions); | |||
OCP\JSON::success(); | |||
?> |
@@ -35,5 +35,3 @@ foreach ($sources as $source) { | |||
} | |||
} | |||
} | |||
?> |
@@ -7,5 +7,3 @@ if ($_POST['resharing'] == true) { | |||
} else { | |||
OCP\Config::setAppValue('files_sharing', 'resharing', 'no'); | |||
} | |||
?> |
@@ -9,5 +9,3 @@ $uid_shared_with = $_POST['uid_shared_with']; | |||
OC_Share::unshare($source, $uid_shared_with); | |||
OCP\JSON::success(); | |||
?> |
@@ -28,5 +28,3 @@ $users[] = "</optgroup>"; | |||
$groups[] = "</optgroup>"; | |||
$users = array_merge($users, $groups); | |||
OCP\JSON::encodedPrint($users); | |||
?> |
@@ -86,4 +86,3 @@ if (isset($_GET['token']) && $source = OC_Share::getSource($_GET['token'])) { | |||
$tmpl->printPage(); | |||
die(); | |||
} | |||
?> |
@@ -513,5 +513,3 @@ class OC_Share { | |||
} | |||
} | |||
?> |
@@ -33,5 +33,3 @@ OCP\Util::addscript("files_sharing", "list"); | |||
$tmpl = new OCP\Template("files_sharing", "list", "user"); | |||
$tmpl->assign("shared_items", OC_Share::getMySharedItems()); | |||
$tmpl->printPage(); | |||
?> |
@@ -4,4 +4,3 @@ OCP\Util::addStyle( 'files_texteditor', 'DroidSansMono/stylesheet' ); | |||
OCP\Util::addStyle( 'files_texteditor', 'style' ); | |||
OCP\Util::addscript( 'files_texteditor', 'editor'); | |||
OCP\Util::addscript( 'files_texteditor', 'aceeditor/ace'); | |||
?> |
@@ -7,5 +7,3 @@ if (OCP\Config::getSystemValue('versions', 'true')=='true') { | |||
} else { | |||
OCP\Config::setSystemValue('versions', 'true'); | |||
} | |||
?> |
@@ -71,5 +71,3 @@ if ( isset( $_GET['path'] ) ) { | |||
} | |||
$tmpl->printPage( ); | |||
?> |
@@ -30,43 +30,41 @@ class Hooks { | |||
} | |||
} | |||
/** | |||
* @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']); | |||
} | |||
} | |||
/** | |||
* @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']); | |||
} | |||
} | |||
} | |||
} | |||
?> |
@@ -7,4 +7,3 @@ OCP\Util::addscript( 'files_versions', 'versions' ); | |||
$tmpl = new OCP\Template( 'files_versions', 'settings'); | |||
return $tmpl->fetchPage(); | |||
?> |
@@ -28,5 +28,3 @@ OCP\JSON::checkAppEnabled('gallery'); | |||
OC_Gallery_Album::create(OCP\USER::getUser(), $_GET['album_name']); | |||
OCP\JSON::success(array('name' => $_GET['album_name'])); | |||
?> |
@@ -186,4 +186,3 @@ if ($_GET['operation']) { | |||
OCP\JSON::error(array('cause' => 'Unknown operation')); | |||
} | |||
} | |||
?> |
@@ -103,4 +103,3 @@ $tmpl = new OCP\Template( 'gallery', 'index', 'user' ); | |||
$tmpl->assign('root', $root, false); | |||
$tmpl->assign('tl', $tl, false); | |||
$tmpl->printPage(); | |||
?> |
@@ -38,5 +38,3 @@ class OC_Gallery_Hooks_Handlers { | |||
//TODO: implement this | |||
} | |||
} | |||
?> |
@@ -60,5 +60,3 @@ function CroppedThumbnail($imgSrc,$thumbnail_width,$thumbnail_height, $tgtImg, $ | |||
imagedestroy($process); | |||
imagedestroy($myImage); | |||
} | |||
?> |
@@ -102,13 +102,12 @@ class ThumbnailsManager { | |||
} | |||
public function delete($path) { | |||
$thumbnail = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path; | |||
if (file_exists($thumbnail)) { | |||
unlink($thumbnail); | |||
$thumbnail = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path; | |||
if (file_exists($thumbnail)) { | |||
unlink($thumbnail); | |||
} | |||
} | |||
private function __construct() {} | |||
} | |||
?> |
@@ -174,5 +174,3 @@ class TileStack extends TileBase { | |||
private $tiles_array; | |||
private $stack_name; | |||
} | |||
?> |
@@ -83,5 +83,3 @@ if ($ts->getCount() != 0) { | |||
} | |||
echo $tl->get(); | |||
?> |
@@ -131,4 +131,3 @@ if($arguments['action']){ | |||
exit; | |||
} | |||
} | |||
?> |
@@ -35,4 +35,3 @@ $autoUpdate=(isset($_GET['autoupdate']) and $_GET['autoupdate']=='true'); | |||
OCP\Config::setUserValue(OCP\USER::getUser(),'media','autoupdate',(integer)$autoUpdate); | |||
OCP\JSON::success(array('data' => $autoUpdate)); | |||
?> |
@@ -40,5 +40,3 @@ OCP\App::setActiveNavigationEntry( 'media_index' ); | |||
$tmpl = new OCP\Template( 'media', 'music', 'user' ); | |||
$tmpl->printPage(); | |||
?> | |||
@@ -419,5 +419,3 @@ class OC_MEDIA_AMPACHE{ | |||
echo('</root>'); | |||
} | |||
} | |||
?> |
@@ -387,5 +387,3 @@ class OC_MEDIA_COLLECTION{ | |||
$query->execute(array($newPath,$oldPath)); | |||
} | |||
} | |||
?> |
@@ -3,4 +3,3 @@ | |||
$tmpl = new OCP\Template( 'media', 'settings'); | |||
return $tmpl->fetchPage(); | |||
?> |
@@ -4,4 +4,3 @@ require_once('lib_remoteStorage.php'); | |||
$tmpl = new OCP\Template( 'remoteStorage', 'settings'); | |||
return $tmpl->fetchPage(); | |||
?> |
@@ -31,4 +31,3 @@ $entry = array( | |||
'href' => OCP\Util::linkTo( "user_migrate", "admin.php" ), | |||
'name' => 'Import' | |||
); | |||
?> |
@@ -1705,4 +1705,3 @@ $run_mode = (isset($_REQUEST['openid_mode']) | |||
debug("Run mode: $run_mode at: " . time()); | |||
debug($_REQUEST, 'Request params'); | |||
call_user_func($run_mode . '_mode'); | |||
?> |
@@ -45,6 +45,3 @@ if(!OCP\User::userExists($USERNAME)){ | |||
$IDENTITY=OCP\Util::linkToAbsolute( "user_openid", "user.php" ).'/'.$USERNAME; | |||
require_once 'phpmyid.php'; | |||
?> |
@@ -58,4 +58,3 @@ foreach($apps as $app) { | |||
} | |||
} | |||
echo "]}"; | |||
?> |
@@ -45,5 +45,3 @@ foreach( OC_Group::getGroups() as $i ){ | |||
} | |||
OC_JSON::encodedPrint($groups); | |||
?> |
@@ -29,4 +29,3 @@ $app = $_POST["app"]; | |||
$l = OC_L10N::get( $app ); | |||
OC_JSON::success(array('data' => $l->getTranslations())); | |||
?> |
@@ -44,5 +44,3 @@ foreach( OC_User::getUsers() as $i ){ | |||
} | |||
OC_JSON::encodedPrint($users); | |||
?> |
@@ -36,5 +36,3 @@ if(!isset($_SERVER['PHP_AUTH_USER'])){ | |||
OC_JSON::encodedPrint(array("username" => $_SERVER["PHP_AUTH_USER"], "user_valid" => "false")); | |||
} | |||
} | |||
?> |
@@ -39,5 +39,3 @@ if($categories->hasCategory($category)) { | |||
} | |||
OC_JSON::success(array('data' => array('categories'=>$categories->categories()))); | |||
?> |
@@ -34,5 +34,3 @@ if(is_null($categories)) { | |||
$vcategories = new OC_VCategories($app); | |||
$vcategories->delete($categories); | |||
OC_JSON::success(array('data' => array('categories'=>$vcategories->categories()))); | |||
?> |
@@ -31,5 +31,3 @@ $categories = $vcategories->categories(); | |||
debug(print_r($categories, true)); | |||
$tmpl->assign('categories',$categories); | |||
$tmpl->printpage(); | |||
?> |
@@ -7,4 +7,3 @@ $l->t("Users"); | |||
$l->t("Apps"); | |||
$l->t("Admin"); | |||
$l->t("Help"); | |||
?> |
@@ -134,4 +134,3 @@ class MDB2_Driver_Function_sqlite3 extends MDB2_Driver_Function_Common | |||
// }}} | |||
} | |||
?> |
@@ -1360,4 +1360,3 @@ class MDB2_Driver_Manager_sqlite3 extends MDB2_Driver_Manager_Common | |||
// }}} | |||
} | |||
?> |
@@ -1332,5 +1332,3 @@ class MDB2_Statement_sqlite3 extends MDB2_Statement_Common | |||
$this->free(); | |||
} | |||
} | |||
?> |
@@ -158,6 +158,3 @@ class App { | |||
} | |||
?> |
@@ -134,5 +134,3 @@ class Config { | |||
} | |||
?> |
@@ -91,5 +91,3 @@ class DB { | |||
} | |||
?> |
@@ -115,5 +115,3 @@ class Files { | |||
} | |||
?> |
@@ -105,5 +105,3 @@ class JSON { | |||
} | |||
} | |||
?> |
@@ -105,5 +105,3 @@ class Response { | |||
} | |||
?> |
@@ -104,6 +104,3 @@ function html_select_options($options, $selected, $params=array()) { | |||
class Template extends \OC_Template { | |||
} | |||
?> |
@@ -120,6 +120,3 @@ class User { | |||
} | |||
?> |
@@ -321,5 +321,3 @@ class Util { | |||
return(\OC_Helper::mb_str_replace($search, $replace, $subject, $encoding, $count)); | |||
} | |||
} | |||
?> |
@@ -380,5 +380,3 @@ class OC_Setup { | |||
file_put_contents(OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data').'/index.html', ''); | |||
} | |||
} | |||
?> |
@@ -84,4 +84,3 @@ class OC_Updater{ | |||
} | |||
} | |||
?> |
@@ -223,4 +223,3 @@ class OC_VCategories { | |||
} | |||
} | |||
?> |
@@ -40,6 +40,3 @@ echo(' | |||
</provider> | |||
</providers> | |||
'); | |||
?> |