remove superfluous ?> at the end of .php files (left out apps/*/templates)

This commit is contained in:
Jörn Friedrich Dreyer 2012-07-09 16:51:16 +02:00
parent b67199bb45
commit e59a1806cf
118 changed files with 41 additions and 249 deletions

View File

@ -145,5 +145,4 @@ class OC_Bookmarks_Bookmarks{
$result = $query->execute(); $result = $query->execute();
return true; return true;
} }
} }
?>

View File

@ -17,4 +17,3 @@ $tmpl = new OCP\Template('contacts', 'part.editaddressbook');
$tmpl->assign('new', true); $tmpl->assign('new', true);
$tmpl->assign('addressbook', $book); $tmpl->assign('addressbook', $book);
$tmpl->printPage(); $tmpl->printPage();
?>

View File

@ -25,4 +25,3 @@ foreach($vcard->children as $property){
} }
} }
OCP\JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('Error setting checksum.')))); OCP\JSON::error(array('data' => array('message' => OC_Contacts_App::$l10n->t('Error setting checksum.'))));
?>

View File

@ -45,5 +45,3 @@ $catman->delete($categories, $cards);
debug('After delete: '.print_r($catman->categories(), true)); debug('After delete: '.print_r($catman->categories(), true));
OC_Contacts_VCard::updateDataByID($cards); OC_Contacts_VCard::updateDataByID($cards);
OCP\JSON::success(array('data' => array('categories'=>$catman->categories()))); OCP\JSON::success(array('data' => array('categories'=>$catman->categories())));
?>

View File

@ -13,5 +13,3 @@ OCP\JSON::checkAppEnabled('contacts');
$categories = OC_Contacts_App::getCategories(); $categories = OC_Contacts_App::getCategories();
OCP\JSON::success(array('data' => array('categories'=>$categories))); OCP\JSON::success(array('data' => array('categories'=>$categories)));
?>

View File

@ -14,5 +14,3 @@ OC_Contacts_App::scanCategories();
$categories = OC_Contacts_App::getCategories(); $categories = OC_Contacts_App::getCategories();
OCP\JSON::success(array('data' => array('categories'=>$categories))); OCP\JSON::success(array('data' => array('categories'=>$categories)));
?>

View File

@ -51,5 +51,3 @@ if( is_null($contact)) {
bailOut(OC_Contacts_App::$l10n->t('The loading photo is not valid.')); bailOut(OC_Contacts_App::$l10n->t('The loading photo is not valid.'));
} }
} }
?>

View File

@ -39,5 +39,3 @@ $tmpl->assign('adr_types',$adr_types);
$page = $tmpl->fetchPage(); $page = $tmpl->fetchPage();
OCP\JSON::success(array('data' => array('page'=>$page, 'checksum'=>$checksum))); OCP\JSON::success(array('data' => array('page'=>$page, 'checksum'=>$checksum)));
?>

View File

@ -14,4 +14,3 @@ $tmpl = new OCP\Template("contacts", "part.editaddressbook");
$tmpl->assign('new', false); $tmpl->assign('new', false);
$tmpl->assign('addressbook', $addressbook); $tmpl->assign('addressbook', $addressbook);
$tmpl->printPage(); $tmpl->printPage();
?>

View File

@ -32,5 +32,3 @@ if($id) {
} }
$page = $tmpl->fetchPage(); $page = $tmpl->fetchPage();
OCP\JSON::success(array('data' => array('page'=>$page))); OCP\JSON::success(array('data' => array('page'=>$page)));
?>

View File

@ -21,4 +21,3 @@ $tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign('requesttoken', $_SERVER['HTTP_REQUESTTOKEN']); $tmpl->assign('requesttoken', $_SERVER['HTTP_REQUESTTOKEN']);
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); $tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
$tmpl->printpage(); $tmpl->printpage();
?>

View File

@ -13,4 +13,3 @@ $tmpl = new OCP\Template('contacts', 'part.import');
$tmpl->assign('path', $_POST['path']); $tmpl->assign('path', $_POST['path']);
$tmpl->assign('filename', $_POST['filename']); $tmpl->assign('filename', $_POST['filename']);
$tmpl->printpage(); $tmpl->printpage();
?>

View File

@ -58,5 +58,3 @@ if(OC_Cache::set($tmpkey, $image->data(), 600)) {
} else { } else {
bailOut('Couldn\'t save temporary image: '.$tmpkey); bailOut('Couldn\'t save temporary image: '.$tmpkey);
} }
?>

View File

@ -70,6 +70,3 @@ if(file_exists($file['tmp_name'])) {
} else { } else {
bailOut('Temporary file: \''.$file['tmp_name'].'\' has gone AWOL?'); bailOut('Temporary file: \''.$file['tmp_name'].'\' has gone AWOL?');
} }
?>

View File

@ -102,4 +102,3 @@ if(file_exists($file['tmp_name'])) {
} else { } else {
bailOut('Temporary file: \''.$file['tmp_name'].'\' has gone AWOL?'); bailOut('Temporary file: \''.$file['tmp_name'].'\' has gone AWOL?');
} }
?>

View File

@ -32,4 +32,3 @@ if(isset($bookid)){
header('Content-Disposition: inline; filename=' . str_replace(' ', '_', $data['fullname']) . '.vcf'); header('Content-Disposition: inline; filename=' . str_replace(' ', '_', $data['fullname']) . '.vcf');
echo $data['carddata']; echo $data['carddata'];
} }
?>

View File

@ -73,5 +73,3 @@ $tmpl->assign('addressbooks', $addressbooks);
$tmpl->assign('details', $details ); $tmpl->assign('details', $details );
$tmpl->assign('id',$id); $tmpl->assign('id',$id);
$tmpl->printPage(); $tmpl->printPage();
?>

View File

@ -4,4 +4,3 @@ $tmpl = new OCP\Template( 'contacts', 'settings');
$tmpl->assign('addressbooks', OC_Contacts_Addressbook::all(OCP\USER::getUser()), false); $tmpl->assign('addressbooks', OC_Contacts_Addressbook::all(OCP\USER::getUser()), false);
return $tmpl->fetchPage(); return $tmpl->fetchPage();
?>

View File

@ -23,4 +23,3 @@ else
OCP\Config::setAppValue('external', 'sites', json_encode($sites)); OCP\Config::setAppValue('external', 'sites', json_encode($sites));
echo 'true'; echo 'true';
?>

View File

@ -40,4 +40,3 @@ if (isset($_GET['id'])) {
$tmpl->printPage(); $tmpl->printPage();
} }
} }
?>

View File

@ -32,5 +32,3 @@ class OC_External {
} }
} }
?>

View File

@ -7,4 +7,3 @@ OCP\Util::addscript( "external", "admin" );
$tmpl = new OCP\Template( 'external', 'settings'); $tmpl = new OCP\Template( 'external', 'settings');
return $tmpl->fetchPage(); return $tmpl->fetchPage();
?>

View File

@ -52,5 +52,3 @@ if(OC_Filesystem::file_exists($base) and OC_Filesystem::is_dir($base)){
} }
} }
OCP\JSON::encodedPrint($files); OCP\JSON::encodedPrint($files);
?>

View File

@ -26,5 +26,3 @@ if($success) {
} else { } else {
OCP\JSON::error(array("data" => array( "message" => "Could not delete:\n" . $filesWithError ))); OCP\JSON::error(array("data" => array( "message" => "Could not delete:\n" . $filesWithError )));
} }
?>

View File

@ -34,4 +34,3 @@ $files = $_GET["files"];
$dir = $_GET["dir"]; $dir = $_GET["dir"];
OC_Files::get($dir, $files, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false); OC_Files::get($dir, $files, $_SERVER['REQUEST_METHOD'] == 'HEAD' ? true : false);
?>

View File

@ -42,5 +42,3 @@ $list->assign( "files", $files, false );
$data = array('files' => $list->fetchPage()); $data = array('files' => $list->fetchPage());
OCP\JSON::success(array('data' => $data)); OCP\JSON::success(array('data' => $data));
?>

View File

@ -7,5 +7,3 @@ $RUNTIME_NOAPPS=false;
print OC_Helper::mimetypeIcon($_GET['mime']); print OC_Helper::mimetypeIcon($_GET['mime']);
?>

View File

@ -17,5 +17,3 @@ if(OC_Files::move($dir,$file,$target,$file)){
}else{ }else{
OCP\JSON::error(array("data" => array( "message" => "Could not move $file" ))); OCP\JSON::error(array("data" => array( "message" => "Could not move $file" )));
} }
?>

View File

@ -22,5 +22,3 @@ foreach( OC_Files::getdirectorycontent( $dir, $mimetype ) as $i ){
} }
OCP\JSON::success(array('data' => $files)); OCP\JSON::success(array('data' => $files));
?>

View File

@ -18,5 +18,3 @@ if( OC_Files::move( $dir, $file, $dir, $newname )) {
else{ else{
OCP\JSON::error(array("data" => array( "message" => "Unable to rename file" ))); OCP\JSON::error(array("data" => array( "message" => "Unable to rename file" )));
} }
?>

View File

@ -3,4 +3,4 @@
// see lib/base.php for an example // see lib/base.php for an example
//session_start(); //session_start();
$_SESSION['timezone'] = $_GET['time']; $_SESSION['timezone'] = $_GET['time'];
?>

View File

@ -60,5 +60,3 @@ if(strpos($dir,'..') === false){
} }
OCP\JSON::error(array('data' => array('error' => $error, "file" => $fileName))); OCP\JSON::error(array('data' => array('error' => $error, "file" => $fileName)));
?>

View File

@ -46,4 +46,3 @@ header('Content-Length: '.OC_Filesystem::filesize($filename));
@ob_end_clean(); @ob_end_clean();
OC_Filesystem::readfile( $filename ); OC_Filesystem::readfile( $filename );
?>

View File

@ -98,5 +98,3 @@ $tmpl->assign( 'uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize)); $tmpl->assign( 'uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
$tmpl->assign( 'allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true))); $tmpl->assign( 'allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true)));
$tmpl->printPage(); $tmpl->printPage();
?>

View File

@ -56,5 +56,3 @@ $tmpl = new OCP\Template( "files", "index", "user" );
$tmpl->assign( 'files', $files ); $tmpl->assign( 'files', $files );
$tmpl->assign( "breadcrumb", $breadcrumb ); $tmpl->assign( "breadcrumb", $breadcrumb );
$tmpl->printPage(); $tmpl->printPage();
?>

View File

@ -11,5 +11,3 @@ if ($_POST['isPersonal'] == 'true') {
$isPersonal = false; $isPersonal = false;
} }
OC_Mount_Config::addMountPoint($_POST['mountPoint'], $_POST['class'], $_POST['classOptions'], $_POST['mountType'], $_POST['applicable'], $isPersonal); OC_Mount_Config::addMountPoint($_POST['mountPoint'], $_POST['class'], $_POST['classOptions'], $_POST['mountType'], $_POST['applicable'], $isPersonal);
?>

View File

@ -11,5 +11,3 @@ if ($_POST['isPersonal'] == 'true') {
$isPersonal = false; $isPersonal = false;
} }
OC_Mount_Config::removeMountPoint($_POST['mountPoint'], $_POST['mountType'], $_POST['applicable'], $isPersonal); OC_Mount_Config::removeMountPoint($_POST['mountPoint'], $_POST['mountType'], $_POST['applicable'], $isPersonal);
?>

View File

@ -45,6 +45,3 @@ if (!is_array($config) or !isset($config['amazons3']) or !$config['amazons3']['r
} }
} }
} }
?>

View File

@ -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.mousewheel-3.0.4.pack');
OCP\Util::addscript('files_imageviewer', 'jquery.fancybox-1.3.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::addStyle( 'files_imageviewer', 'jquery.fancybox-1.3.4' );
?>

View File

@ -6,4 +6,3 @@ OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/compatibility');
OCP\Util::addscript( 'files_pdfviewer', 'viewer'); OCP\Util::addscript( 'files_pdfviewer', 'viewer');
OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/build/pdf'); OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/build/pdf');
OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/viewer'); OCP\Util::addscript( 'files_pdfviewer', 'pdfjs/viewer');
?>

View File

@ -11,5 +11,3 @@ $link = $_POST['link'];
$text = $user.' shared the '.$type.' '.$_POST['file'].' with you. It is available for download here: '.$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()); $fromaddress = OCP\Config::getUserValue($user, 'settings', 'email', 'sharing-noreply@'.OCP\Util::getServerHost());
OC_Mail::send($_POST['toaddress'], $_POST['toaddress'], $subject, $text, $fromaddress, $user); OC_Mail::send($_POST['toaddress'], $_POST['toaddress'], $subject, $text, $fromaddress, $user);
?>

View File

@ -64,5 +64,3 @@ while ($path != $userDirectory) {
} }
OCP\JSON::success(array('data' => $item)); OCP\JSON::success(array('data' => $item));
?>

View File

@ -20,5 +20,3 @@ if ($rows = OC_Share::getMySharedItems()) {
} }
OCP\JSON::success(array('data' => $items)); OCP\JSON::success(array('data' => $items));
?>

View File

@ -10,5 +10,3 @@ $permissions = $_POST['permissions'];
OC_Share::setPermissions($source, $uid_shared_with, $permissions); OC_Share::setPermissions($source, $uid_shared_with, $permissions);
OCP\JSON::success(); OCP\JSON::success();
?>

View File

@ -35,5 +35,3 @@ foreach ($sources as $source) {
} }
} }
} }
?>

View File

@ -7,5 +7,3 @@ if ($_POST['resharing'] == true) {
} else { } else {
OCP\Config::setAppValue('files_sharing', 'resharing', 'no'); OCP\Config::setAppValue('files_sharing', 'resharing', 'no');
} }
?>

View File

@ -9,5 +9,3 @@ $uid_shared_with = $_POST['uid_shared_with'];
OC_Share::unshare($source, $uid_shared_with); OC_Share::unshare($source, $uid_shared_with);
OCP\JSON::success(); OCP\JSON::success();
?>

View File

@ -28,5 +28,3 @@ $users[] = "</optgroup>";
$groups[] = "</optgroup>"; $groups[] = "</optgroup>";
$users = array_merge($users, $groups); $users = array_merge($users, $groups);
OCP\JSON::encodedPrint($users); OCP\JSON::encodedPrint($users);
?>

View File

@ -86,4 +86,3 @@ if (isset($_GET['token']) && $source = OC_Share::getSource($_GET['token'])) {
$tmpl->printPage(); $tmpl->printPage();
die(); die();
} }
?>

View File

@ -513,5 +513,3 @@ class OC_Share {
} }
} }
?>

View File

@ -33,5 +33,3 @@ OCP\Util::addscript("files_sharing", "list");
$tmpl = new OCP\Template("files_sharing", "list", "user"); $tmpl = new OCP\Template("files_sharing", "list", "user");
$tmpl->assign("shared_items", OC_Share::getMySharedItems()); $tmpl->assign("shared_items", OC_Share::getMySharedItems());
$tmpl->printPage(); $tmpl->printPage();
?>

View File

@ -4,4 +4,3 @@ OCP\Util::addStyle( 'files_texteditor', 'DroidSansMono/stylesheet' );
OCP\Util::addStyle( 'files_texteditor', 'style' ); OCP\Util::addStyle( 'files_texteditor', 'style' );
OCP\Util::addscript( 'files_texteditor', 'editor'); OCP\Util::addscript( 'files_texteditor', 'editor');
OCP\Util::addscript( 'files_texteditor', 'aceeditor/ace'); OCP\Util::addscript( 'files_texteditor', 'aceeditor/ace');
?>

View File

@ -7,5 +7,3 @@ if (OCP\Config::getSystemValue('versions', 'true')=='true') {
} else { } else {
OCP\Config::setSystemValue('versions', 'true'); OCP\Config::setSystemValue('versions', 'true');
} }
?>

View File

@ -71,5 +71,3 @@ if ( isset( $_GET['path'] ) ) {
} }
$tmpl->printPage( ); $tmpl->printPage( );
?>

View File

@ -30,43 +30,41 @@ class Hooks {
} }
} }
/** /**
* @brief Erase versions of deleted file * @brief Erase versions of deleted file
* @param array * @param array
* *
* This function is connected to the delete signal of OC_Filesystem * This function is connected to the delete signal of OC_Filesystem
* cleanup the versions directory if the actual file gets deleted * cleanup the versions directory if the actual file gets deleted
*/ */
public static function remove_hook($params) { public static function remove_hook($params) {
$rel_path = $params['path']; $rel_path = $params['path'];
$abs_path = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_path.'.v'; $abs_path = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_path.'.v';
if(Storage::isversioned($rel_path)) { if(Storage::isversioned($rel_path)) {
$versions = Storage::getVersions($rel_path); $versions = Storage::getVersions($rel_path);
foreach ($versions as $v){ foreach ($versions as $v){
unlink($abs_path . $v['version']); unlink($abs_path . $v['version']);
} }
} }
} }
/** /**
* @brief rename/move versions of renamed/moved files * @brief rename/move versions of renamed/moved files
* @param array with oldpath and newpath * @param array with oldpath and newpath
* *
* This function is connected to the rename signal of OC_Filesystem and adjust the name and location * 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 * of the stored versions along the actual file
*/ */
public static function rename_hook($params) { public static function rename_hook($params) {
$rel_oldpath = $params['oldpath']; $rel_oldpath = $params['oldpath'];
$abs_oldpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$rel_oldpath.'.v'; $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'; $abs_newpath = \OCP\Config::getSystemValue('datadirectory').'/'.\OCP\User::getUser()."/versions".$params['newpath'].'.v';
if(Storage::isversioned($rel_oldpath)) { if(Storage::isversioned($rel_oldpath)) {
$versions = Storage::getVersions($rel_oldpath); $versions = Storage::getVersions($rel_oldpath);
foreach ($versions as $v){ foreach ($versions as $v){
rename($abs_oldpath.$v['version'], $abs_newpath.$v['version']); rename($abs_oldpath.$v['version'], $abs_newpath.$v['version']);
} }
} }
} }
} }
?>

View File

@ -7,4 +7,3 @@ OCP\Util::addscript( 'files_versions', 'versions' );
$tmpl = new OCP\Template( 'files_versions', 'settings'); $tmpl = new OCP\Template( 'files_versions', 'settings');
return $tmpl->fetchPage(); return $tmpl->fetchPage();
?>

View File

@ -28,5 +28,3 @@ OCP\JSON::checkAppEnabled('gallery');
OC_Gallery_Album::create(OCP\USER::getUser(), $_GET['album_name']); OC_Gallery_Album::create(OCP\USER::getUser(), $_GET['album_name']);
OCP\JSON::success(array('name' => $_GET['album_name'])); OCP\JSON::success(array('name' => $_GET['album_name']));
?>

View File

@ -186,4 +186,3 @@ if ($_GET['operation']) {
OCP\JSON::error(array('cause' => 'Unknown operation')); OCP\JSON::error(array('cause' => 'Unknown operation'));
} }
} }
?>

View File

@ -103,4 +103,3 @@ $tmpl = new OCP\Template( 'gallery', 'index', 'user' );
$tmpl->assign('root', $root, false); $tmpl->assign('root', $root, false);
$tmpl->assign('tl', $tl, false); $tmpl->assign('tl', $tl, false);
$tmpl->printPage(); $tmpl->printPage();
?>

View File

@ -38,5 +38,3 @@ class OC_Gallery_Hooks_Handlers {
//TODO: implement this //TODO: implement this
} }
} }
?>

View File

@ -60,5 +60,3 @@ function CroppedThumbnail($imgSrc,$thumbnail_width,$thumbnail_height, $tgtImg, $
imagedestroy($process); imagedestroy($process);
imagedestroy($myImage); imagedestroy($myImage);
} }
?>

View File

@ -102,13 +102,12 @@ class ThumbnailsManager {
} }
public function delete($path) { public function delete($path) {
$thumbnail = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path; $thumbnail = \OCP\Config::getSystemValue('datadirectory').'/'.\OC_User::getUser()."/gallery".$path;
if (file_exists($thumbnail)) { if (file_exists($thumbnail)) {
unlink($thumbnail); unlink($thumbnail);
} }
} }
private function __construct() {} private function __construct() {}
} }
?>

View File

@ -174,5 +174,3 @@ class TileStack extends TileBase {
private $tiles_array; private $tiles_array;
private $stack_name; private $stack_name;
} }
?>

View File

@ -83,5 +83,3 @@ if ($ts->getCount() != 0) {
} }
echo $tl->get(); echo $tl->get();
?>

View File

@ -131,4 +131,3 @@ if($arguments['action']){
exit; exit;
} }
} }
?>

View File

@ -35,4 +35,3 @@ $autoUpdate=(isset($_GET['autoupdate']) and $_GET['autoupdate']=='true');
OCP\Config::setUserValue(OCP\USER::getUser(),'media','autoupdate',(integer)$autoUpdate); OCP\Config::setUserValue(OCP\USER::getUser(),'media','autoupdate',(integer)$autoUpdate);
OCP\JSON::success(array('data' => $autoUpdate)); OCP\JSON::success(array('data' => $autoUpdate));
?>

View File

@ -40,5 +40,3 @@ OCP\App::setActiveNavigationEntry( 'media_index' );
$tmpl = new OCP\Template( 'media', 'music', 'user' ); $tmpl = new OCP\Template( 'media', 'music', 'user' );
$tmpl->printPage(); $tmpl->printPage();
?>

View File

@ -419,5 +419,3 @@ class OC_MEDIA_AMPACHE{
echo('</root>'); echo('</root>');
} }
} }
?>

View File

@ -387,5 +387,3 @@ class OC_MEDIA_COLLECTION{
$query->execute(array($newPath,$oldPath)); $query->execute(array($newPath,$oldPath));
} }
} }
?>

View File

@ -3,4 +3,3 @@
$tmpl = new OCP\Template( 'media', 'settings'); $tmpl = new OCP\Template( 'media', 'settings');
return $tmpl->fetchPage(); return $tmpl->fetchPage();
?>

View File

@ -4,4 +4,3 @@ require_once('lib_remoteStorage.php');
$tmpl = new OCP\Template( 'remoteStorage', 'settings'); $tmpl = new OCP\Template( 'remoteStorage', 'settings');
return $tmpl->fetchPage(); return $tmpl->fetchPage();
?>

View File

@ -31,4 +31,3 @@ $entry = array(
'href' => OCP\Util::linkTo( "user_migrate", "admin.php" ), 'href' => OCP\Util::linkTo( "user_migrate", "admin.php" ),
'name' => 'Import' 'name' => 'Import'
); );
?>

View File

@ -1705,4 +1705,3 @@ $run_mode = (isset($_REQUEST['openid_mode'])
debug("Run mode: $run_mode at: " . time()); debug("Run mode: $run_mode at: " . time());
debug($_REQUEST, 'Request params'); debug($_REQUEST, 'Request params');
call_user_func($run_mode . '_mode'); call_user_func($run_mode . '_mode');
?>

View File

@ -45,6 +45,3 @@ if(!OCP\User::userExists($USERNAME)){
$IDENTITY=OCP\Util::linkToAbsolute( "user_openid", "user.php" ).'/'.$USERNAME; $IDENTITY=OCP\Util::linkToAbsolute( "user_openid", "user.php" ).'/'.$USERNAME;
require_once 'phpmyid.php'; require_once 'phpmyid.php';
?>

View File

@ -58,4 +58,3 @@ foreach($apps as $app) {
} }
} }
echo "]}"; echo "]}";
?>

View File

@ -45,5 +45,3 @@ foreach( OC_Group::getGroups() as $i ){
} }
OC_JSON::encodedPrint($groups); OC_JSON::encodedPrint($groups);
?>

View File

@ -29,4 +29,3 @@ $app = $_POST["app"];
$l = OC_L10N::get( $app ); $l = OC_L10N::get( $app );
OC_JSON::success(array('data' => $l->getTranslations())); OC_JSON::success(array('data' => $l->getTranslations()));
?>

View File

@ -44,5 +44,3 @@ foreach( OC_User::getUsers() as $i ){
} }
OC_JSON::encodedPrint($users); OC_JSON::encodedPrint($users);
?>

View File

@ -36,5 +36,3 @@ if(!isset($_SERVER['PHP_AUTH_USER'])){
OC_JSON::encodedPrint(array("username" => $_SERVER["PHP_AUTH_USER"], "user_valid" => "false")); OC_JSON::encodedPrint(array("username" => $_SERVER["PHP_AUTH_USER"], "user_valid" => "false"));
} }
} }
?>

View File

@ -39,5 +39,3 @@ if($categories->hasCategory($category)) {
} }
OC_JSON::success(array('data' => array('categories'=>$categories->categories()))); OC_JSON::success(array('data' => array('categories'=>$categories->categories())));
?>

View File

@ -34,5 +34,3 @@ if(is_null($categories)) {
$vcategories = new OC_VCategories($app); $vcategories = new OC_VCategories($app);
$vcategories->delete($categories); $vcategories->delete($categories);
OC_JSON::success(array('data' => array('categories'=>$vcategories->categories()))); OC_JSON::success(array('data' => array('categories'=>$vcategories->categories())));
?>

View File

@ -31,5 +31,3 @@ $categories = $vcategories->categories();
debug(print_r($categories, true)); debug(print_r($categories, true));
$tmpl->assign('categories',$categories); $tmpl->assign('categories',$categories);
$tmpl->printpage(); $tmpl->printpage();
?>

View File

@ -7,4 +7,3 @@ $l->t("Users");
$l->t("Apps"); $l->t("Apps");
$l->t("Admin"); $l->t("Admin");
$l->t("Help"); $l->t("Help");
?>

View File

@ -134,4 +134,3 @@ class MDB2_Driver_Function_sqlite3 extends MDB2_Driver_Function_Common
// }}} // }}}
} }
?>

View File

@ -1360,4 +1360,3 @@ class MDB2_Driver_Manager_sqlite3 extends MDB2_Driver_Manager_Common
// }}} // }}}
} }
?>

View File

@ -1332,5 +1332,3 @@ class MDB2_Statement_sqlite3 extends MDB2_Statement_Common
$this->free(); $this->free();
} }
} }
?>

View File

@ -158,6 +158,3 @@ class App {
} }
?>

View File

@ -134,5 +134,3 @@ class Config {
} }
?>

View File

@ -91,5 +91,3 @@ class DB {
} }
?>

View File

@ -115,5 +115,3 @@ class Files {
} }
?>

View File

@ -105,5 +105,3 @@ class JSON {
} }
} }
?>

View File

@ -105,5 +105,3 @@ class Response {
} }
?>

View File

@ -104,6 +104,3 @@ function html_select_options($options, $selected, $params=array()) {
class Template extends \OC_Template { class Template extends \OC_Template {
} }
?>

View File

@ -120,6 +120,3 @@ class User {
} }
?>

View File

@ -321,5 +321,3 @@ class Util {
return(\OC_Helper::mb_str_replace($search, $replace, $subject, $encoding, $count)); return(\OC_Helper::mb_str_replace($search, $replace, $subject, $encoding, $count));
} }
} }
?>

View File

@ -380,5 +380,3 @@ class OC_Setup {
file_put_contents(OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data').'/index.html', ''); file_put_contents(OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data').'/index.html', '');
} }
} }
?>

View File

@ -84,4 +84,3 @@ class OC_Updater{
} }
} }
?>

View File

@ -223,4 +223,3 @@ class OC_VCategories {
} }
} }
?>

View File

@ -40,6 +40,3 @@ echo('
</provider> </provider>
</providers> </providers>
'); ');
?>

View File

@ -24,5 +24,3 @@
require_once('../lib/base.php'); require_once('../lib/base.php');
@ob_clean(); @ob_clean();
OC_OCS::handle(); OC_OCS::handle();
?>

Some files were not shown because too many files have changed in this diff Show More