function search($query)
 {
     $files = OC_Filesystem::search($query);
     $results = array();
     foreach ($files as $file) {
         if (OC_Filesystem::is_dir($file)) {
             $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'index.php?dir=' . $file), 'Files');
         } else {
             $mime = OC_Filesystem::getMimeType($file);
             $mimeBase = substr($mime, 0, strpos($mime, '/'));
             switch ($mimeBase) {
                 case 'audio':
                     break;
                 case 'text':
                     $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'download.php?file=' . $file), 'Text');
                     break;
                 case 'image':
                     $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'download.php?file=' . $file), 'Images');
                     break;
                 default:
                     if ($mime == 'application/xml') {
                         $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'download.php?file=' . $file), 'Text');
                     } else {
                         $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'download.php?file=' . $file), 'Files');
                     }
             }
         }
     }
     return $results;
 }
 function search($query)
 {
     $files = OC_FileCache::search($query, true);
     $results = array();
     foreach ($files as $fileData) {
         $file = $fileData['path'];
         $mime = $fileData['mimetype'];
         if ($mime == 'httpd/unix-directory') {
             $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'index.php') . '?dir=' . $file, 'Files');
         } else {
             $mimeBase = $fileData['mimepart'];
             switch ($mimeBase) {
                 case 'audio':
                     break;
                 case 'text':
                     $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'download.php') . '?file=' . $file, 'Text');
                     break;
                 case 'image':
                     $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'download.php') . '?file=' . $file, 'Images');
                     break;
                 default:
                     if ($mime == 'application/xml') {
                         $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'download.php') . '?file=' . $file, 'Text');
                     } else {
                         $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('files', 'download.php') . '?file=' . $file, 'Files');
                     }
             }
         }
     }
     return $results;
 }
 /**
  * @brief Search in the activities and return search results
  * @param $query
  * @return search results
  */
 function search($query)
 {
     $data = Data::search($query, 100);
     $results = array();
     foreach ($data as $d) {
         $file = $d['file'];
         $results[] = new \OC_Search_Result(basename($file), $d['subject'] . ' (' . \OCP\Util::formatDate($d['timestamp']) . ')', \OC_Helper::linkTo('activity', 'index.php'), 'Activity');
     }
     return $results;
 }
Exemple #4
0
 public function __construct()
 {
     $baseUrl = OC_Helper::linkTo('', 'index.php');
     $method = $_SERVER['REQUEST_METHOD'];
     $host = OC_Request::serverHost();
     $schema = OC_Request::serverProtocol();
     $this->context = new RequestContext($baseUrl, $method, $host, $schema);
     // TODO cache
     $this->root = $this->getCollection('root');
 }
Exemple #5
0
function do_exit($jobid, $pid, $message)
{
    $redirect = isset($_GET["redirect"]);
    $url = isset($_GET["url"]) ? $_GET["url"] : OC_Helper::linkTo("neurocloud", "index.php", array("jobid" => $jobid, "pid" => $pid, "message" => $message, "action" => "kill"));
    if ($redirect) {
        header("Location: " . $url);
    } else {
        echo $message;
        exit;
    }
}
Exemple #6
0
 function search($query)
 {
     $files = OC_FileCache::search($query, true);
     $results = array();
     foreach ($files as $fileData) {
         $file = $fileData['path'];
         $mime = $fileData['mimetype'];
         if ($mime == 'application/pdf') {
             $results[] = new OC_Search_Result(basename($file), '', OC_Helper::linkTo('reader', 'results.php') . '?file=' . $file, 'eBook');
         }
     }
     return $results;
 }
 public function __construct()
 {
     $baseUrl = \OC_Helper::linkTo('', 'index.php');
     if (!\OC::$CLI) {
         $method = $_SERVER['REQUEST_METHOD'];
     } else {
         $method = 'GET';
     }
     $request = \OC::$server->getRequest();
     $host = $request->getServerHost();
     $schema = $request->getServerProtocol();
     $this->context = new RequestContext($baseUrl, $method, $host, $schema);
     // TODO cache
     $this->root = $this->getCollection('root');
 }
Exemple #8
0
 /**
  * @param ILogger $logger
  */
 public function __construct(ILogger $logger)
 {
     $this->logger = $logger;
     $baseUrl = \OC::$WEBROOT;
     if (!(getenv('front_controller_active') === 'true')) {
         $baseUrl = \OC_Helper::linkTo('', 'index.php');
     }
     if (!\OC::$CLI) {
         $method = $_SERVER['REQUEST_METHOD'];
     } else {
         $method = 'GET';
     }
     $request = \OC::$server->getRequest();
     $host = $request->getServerHost();
     $schema = $request->getServerProtocol();
     $this->context = new RequestContext($baseUrl, $method, $host, $schema);
     // TODO cache
     $this->root = $this->getCollection('root');
 }
Exemple #9
0
 function search($query)
 {
     $files = \OC\Files\Filesystem::search($query, true);
     $results = array();
     $l = OC_L10N::get('lib');
     foreach ($files as $fileData) {
         $path = $fileData['path'];
         $mime = $fileData['mimetype'];
         $name = basename($path);
         $container = dirname($path);
         $text = '';
         $skip = false;
         if ($mime == 'httpd/unix-directory') {
             $link = OC_Helper::linkTo('files', 'index.php', array('dir' => $path));
             $type = (string) $l->t('Files');
         } else {
             $link = OC_Helper::linkToRoute('download', array('file' => $path));
             $mimeBase = $fileData['mimepart'];
             switch ($mimeBase) {
                 case 'audio':
                     $skip = true;
                     break;
                 case 'text':
                     $type = (string) $l->t('Text');
                     break;
                 case 'image':
                     $type = (string) $l->t('Images');
                     break;
                 default:
                     if ($mime == 'application/xml') {
                         $type = (string) $l->t('Text');
                     } else {
                         $type = (string) $l->t('Files');
                     }
             }
         }
         if (!$skip) {
             $results[] = new OC_Search_Result($name, $text, $link, $type, $container);
         }
     }
     return $results;
 }
Exemple #10
0
 function search($query)
 {
     $files = OC_FileCache::search($query, true);
     $results = array();
     foreach ($files as $fileData) {
         $path = $fileData['path'];
         $mime = $fileData['mimetype'];
         $name = basename($path);
         $text = '';
         $skip = false;
         if ($mime == 'httpd/unix-directory') {
             $link = OC_Helper::linkTo('files', 'index.php', array('dir' => $path));
             $type = 'Files';
         } else {
             $link = OC_Helper::linkTo('files', 'download.php', array('file' => $path));
             $mimeBase = $fileData['mimepart'];
             switch ($mimeBase) {
                 case 'audio':
                     $skip = true;
                     break;
                 case 'text':
                     $type = 'Text';
                     break;
                 case 'image':
                     $type = 'Images';
                     break;
                 default:
                     if ($mime == 'application/xml') {
                         $type = 'Text';
                     } else {
                         $type = 'Files';
                     }
             }
         }
         if (!$skip) {
             $results[] = new OC_Search_Result($name, $text, $link, $type);
         }
     }
     return $results;
 }
 function search($query)
 {
     require_once 'lib_collection.php';
     $artists = OC_MEDIA_COLLECTION::getArtists($query);
     $albums = OC_MEDIA_COLLECTION::getAlbums(0, $query);
     $songs = OC_MEDIA_COLLECTION::getSongs(0, 0, $query);
     $results = array();
     foreach ($artists as $artist) {
         $results[] = new OC_Search_Result($artist['artist_name'], '', OC_Helper::linkTo('apps/media', 'index.php#artist=' . urlencode($artist['artist_name'])), 'Music');
     }
     foreach ($albums as $album) {
         $artist = OC_MEDIA_COLLECTION::getArtistName($album['album_artist']);
         $results[] = new OC_Search_Result($album['album_name'], 'by ' . $artist, OC_Helper::linkTo('apps/media', 'index.php#artist=' . urlencode($artist) . '&album=' . urlencode($album['album_name'])), 'Music');
     }
     foreach ($songs as $song) {
         $minutes = floor($song['song_length'] / 60);
         $secconds = $song['song_length'] % 60;
         $artist = OC_MEDIA_COLLECTION::getArtistName($song['song_artist']);
         $album = OC_MEDIA_COLLECTION::getalbumName($song['song_album']);
         $results[] = new OC_Search_Result($song['song_name'], "by {$artist}, in {$album} {$minutes}:{$secconds}", OC_Helper::linkTo('apps/media', 'index.php#artist=' . urlencode($artist) . '&album=' . urlencode($album) . '&song=' . urlencode($song['song_name'])), 'Music');
     }
     return $results;
 }
Exemple #12
0
 public function generateAssets()
 {
     $assetDir = \OC::$server->getConfig()->getSystemValue('assetdirectory', \OC::$SERVERROOT);
     $jsFiles = self::findJavascriptFiles(OC_Util::$scripts);
     $jsHash = self::hashFileNames($jsFiles);
     if (!file_exists("{$assetDir}/assets/{$jsHash}.js")) {
         $jsFiles = array_map(function ($item) {
             $root = $item[0];
             $file = $item[2];
             // no need to minifiy minified files
             if (substr($file, -strlen('.min.js')) === '.min.js') {
                 return new FileAsset($root . '/' . $file, array(new SeparatorFilter(';')), $root, $file);
             }
             return new FileAsset($root . '/' . $file, array(new JSMinFilter(), new SeparatorFilter(';')), $root, $file);
         }, $jsFiles);
         $jsCollection = new AssetCollection($jsFiles);
         $jsCollection->setTargetPath("assets/{$jsHash}.js");
         $writer = new AssetWriter($assetDir);
         $writer->writeAsset($jsCollection);
     }
     $cssFiles = self::findStylesheetFiles(OC_Util::$styles);
     $cssHash = self::hashFileNames($cssFiles);
     if (!file_exists("{$assetDir}/assets/{$cssHash}.css")) {
         $cssFiles = array_map(function ($item) {
             $root = $item[0];
             $file = $item[2];
             $assetPath = $root . '/' . $file;
             $sourceRoot = \OC::$SERVERROOT;
             $sourcePath = substr($assetPath, strlen(\OC::$SERVERROOT));
             return new FileAsset($assetPath, array(new CssRewriteFilter(), new CssMinFilter(), new CssImportFilter()), $sourceRoot, $sourcePath);
         }, $cssFiles);
         $cssCollection = new AssetCollection($cssFiles);
         $cssCollection->setTargetPath("assets/{$cssHash}.css");
         $writer = new AssetWriter($assetDir);
         $writer->writeAsset($cssCollection);
     }
     $this->append('jsfiles', OC_Helper::linkTo('assets', "{$jsHash}.js"));
     $this->append('cssfiles', OC_Helper::linkTo('assets', "{$cssHash}.css"));
 }
 private static function printSong($song, $artistName = false, $albumName = false)
 {
     if (!$artistName) {
         $artistName = OC_MEDIA_COLLECTION::getArtistName($song['song_artist']);
     }
     if (!$albumName) {
         $albumName = OC_MEDIA_COLLECTION::getAlbumName($song['song_album']);
     }
     $artistName = utf8_decode(htmlentities($artistName));
     $albumName = utf8_decode(htmlentities($albumName));
     $id = $song['song_id'];
     $name = utf8_decode(htmlentities($song['song_name']));
     $artist = $song['song_artist'];
     $album = $song['song_album'];
     echo "\t<song id='{$id}'>\n";
     echo "\t\t<title>{$name}</title>\n";
     echo "\t\t<artist id='{$artist}'>{$artistName}</artist>\n";
     echo "\t\t<album id='{$album}'>{$albumName}</album>\n";
     $url = OC_Helper::linkTo('media', 'server/xml.server.php', null, true) . "?action=play&song={$id}&auth={$_GET['auth']}";
     $url = htmlentities($url);
     echo "\t\t<url>{$url}</url>\n";
     echo "\t\t<time>{$song['song_length']}</time>\n";
     echo "\t\t<track>{$song['song_track']}</track>\n";
     echo "\t\t<size>{$song['song_size']}</size>\n";
     echo "\t\t<art></art>\n";
     echo "\t\t<rating>0</rating>\n";
     echo "\t\t<preciserating>0</preciserating>\n";
     echo "\t</song>\n";
 }
Exemple #14
0
<?php

/**
* ownCloud - News app
*
* @author Alessandro Cosentino
* Copyright (c) 2012 - Alessandro Cosentino <*****@*****.**>
*
* This file is licensed under the Affero General Public License version 3 or later.
* See the COPYING-README file
*
*/
OC::$CLASSPATH['OCA\\News\\StatusFlag'] = 'apps/news/lib/item.php';
OC::$CLASSPATH['OCA\\News\\Item'] = 'apps/news/lib/item.php';
OC::$CLASSPATH['OCA\\News\\Collection'] = 'apps/news/lib/collection.php';
OC::$CLASSPATH['OCA\\News\\Feed'] = 'apps/news/lib/feed.php';
OC::$CLASSPATH['OCA\\News\\Folder'] = 'apps/news/lib/folder.php';
OC::$CLASSPATH['OCA\\News\\FeedType'] = 'apps/news/lib/feedtypes.php';
OC::$CLASSPATH['OCA\\News\\FeedMapper'] = 'apps/news/lib/feedmapper.php';
OC::$CLASSPATH['OCA\\News\\ItemMapper'] = 'apps/news/lib/itemmapper.php';
OC::$CLASSPATH['OCA\\News\\FolderMapper'] = 'apps/news/lib/foldermapper.php';
OC::$CLASSPATH['OCA\\News\\Utils'] = 'apps/news/lib/utils.php';
OC::$CLASSPATH['OC_Search_Provider_News'] = 'apps/news/lib/search.php';
OC::$CLASSPATH['OCA\\News\\Backgroundjob'] = 'apps/news/lib/backgroundjob.php';
OCP\Backgroundjob::addRegularTask('OCA\\News\\Backgroundjob', 'run');
OC::$CLASSPATH['OCA\\News\\Share_Backend_News_Item'] = 'apps/news/lib/share/item.php';
OCP\App::addNavigationEntry(array('id' => 'news', 'order' => 74, 'href' => OC_Helper::linkTo('news', 'index.php'), 'icon' => OC_Helper::imagePath('news', 'icon.svg'), 'name' => OC_L10N::get('news')->t('News')));
OC_Search::registerProvider('OC_Search_Provider_News');
OCP\Share::registerBackend('news_item', 'OCA\\News\\Share_Backend_News_Item');
<?php

$l = new OC_L10N('calendar');
OC::$CLASSPATH['OC_Calendar_Calendar'] = 'apps/calendar/lib/calendar.php';
OC::$CLASSPATH['OC_Calendar_Object'] = 'apps/calendar/lib/object.php';
OC::$CLASSPATH['OC_Calendar_Hooks'] = 'apps/calendar/lib/hooks.php';
OC::$CLASSPATH['OC_Connector_Sabre_CalDAV'] = 'apps/calendar/lib/connector_sabre.php';
OC_HOOK::connect('OC_User', 'post_createUser', 'OC_Calendar_Hooks', 'deleteUser');
OC_Util::addScript('calendar', 'loader');
OC_App::register(array('order' => 10, 'id' => 'calendar', 'name' => 'Calendar'));
OC_App::addNavigationEntry(array('id' => 'calendar_index', 'order' => 10, 'href' => OC_Helper::linkTo('calendar', 'index.php'), 'icon' => OC_Helper::imagePath('calendar', 'icon.png'), 'name' => $l->t('Calendar')));
OC_App::registerPersonal('calendar', 'settings');
Exemple #16
0
<form class="addBm" method="post" action="<?php 
print_unescaped(OCP\Util::linkTo('bookmarks', 'ajax/editBookmark.php'));
?>
">
		<?php 
if (!isset($embedded) || !$embedded) {
    ?>
			<script type="text/javascript" src="<?php 
    print_unescaped(OC_Helper::linkTo('bookmarks/js', 'full_tags.php'));
    ?>
"></script>

			<h1><?php 
    p($l->t('Add a bookmark'));
    ?>
</h1>
			<div class="close_btn">
				<a href="javascript:self.close()" class="ui-icon ui-icon-closethick">
					<?php 
    p($l->t('Close'));
    ?>
				</a>
			</div>
		<?php 
}
?>
		<fieldset class="bm_desc">
		<ul>
			<li>
				<input type="text" name="title" class="title" value="<?php 
p($_['bookmark']['title']);
$breadcrumb = array();
$pathtohere = "";
foreach (explode("/", $dir) as $i) {
    if ($i != "") {
        $pathtohere .= "/" . str_replace('+', '%20', urlencode($i));
        $breadcrumb[] = array("dir" => $pathtohere, "name" => $i);
    }
}
// make breadcrumb und filelist markup
$list = new OC_Template("files", "part.list", "");
$list->assign("files", $files);
$list->assign("baseURL", OC_Helper::linkTo("files", "index.php") . "?dir=");
$list->assign("downloadURL", OC_Helper::linkTo("files", "download.php") . "?file=");
$breadcrumbNav = new OC_Template("files", "part.breadcrumb", "");
$breadcrumbNav->assign("breadcrumb", $breadcrumb);
$breadcrumbNav->assign("baseURL", OC_Helper::linkTo("files", "index.php") . "?dir=");
$upload_max_filesize = OC_Helper::computerFileSize(ini_get('upload_max_filesize'));
$post_max_size = OC_Helper::computerFileSize(ini_get('post_max_size'));
$maxUploadFilesize = min($upload_max_filesize, $post_max_size);
$freeSpace = OC_Filesystem::free_space('/');
$freeSpace = max($freeSpace, 0);
$maxUploadFilesize = min($maxUploadFilesize, $freeSpace);
$tmpl = new OC_Template("files", "index", "user");
$tmpl->assign("fileList", $list->fetchPage());
$tmpl->assign("breadcrumb", $breadcrumbNav->fetchPage());
$tmpl->assign('dir', $dir);
$tmpl->assign('readonly', !OC_Filesystem::is_writable($dir));
$tmpl->assign("files", $files);
$tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
$tmpl->assign('uploadMaxHumanFilesize', OC_Helper::humanFileSize($maxUploadFilesize));
$tmpl->printPage();
Exemple #18
0
 public function __construct($renderas)
 {
     // Decide which page we show
     if ($renderas == 'user') {
         parent::__construct('core', 'layout.user');
         if (in_array(OC_APP::getCurrentApp(), array('settings', 'admin', 'help')) !== false) {
             $this->assign('bodyid', 'body-settings', false);
         } else {
             $this->assign('bodyid', 'body-user', false);
         }
         // Add navigation entry
         $navigation = OC_App::getNavigation();
         $this->assign('navigation', $navigation, false);
         $this->assign('settingsnavigation', OC_App::getSettingsNavigation(), false);
         foreach ($navigation as $entry) {
             if ($entry['active']) {
                 $this->assign('application', $entry['name'], false);
                 break;
             }
         }
     } else {
         if ($renderas == 'guest') {
             parent::__construct('core', 'layout.guest');
         } else {
             parent::__construct('core', 'layout.base');
         }
     }
     $apps_paths = array();
     foreach (OC_App::getEnabledApps() as $app) {
         $apps_paths[$app] = OC_App::getAppWebPath($app);
     }
     $this->assign('apps_paths', str_replace('\\/', '/', json_encode($apps_paths)), false);
     // Ugly unescape slashes waiting for better solution
     if (OC_Config::getValue('installed', false) && !OC_AppConfig::getValue('core', 'remote_core.css', false)) {
         OC_AppConfig::setValue('core', 'remote_core.css', '/core/minimizer.php');
         OC_AppConfig::setValue('core', 'remote_core.js', '/core/minimizer.php');
     }
     // Add the js files
     $jsfiles = self::findJavascriptFiles(OC_Util::$scripts);
     $this->assign('jsfiles', array(), false);
     if (!empty(OC_Util::$core_scripts)) {
         $this->append('jsfiles', OC_Helper::linkToRemoteBase('core.js', false));
     }
     foreach ($jsfiles as $info) {
         $root = $info[0];
         $web = $info[1];
         $file = $info[2];
         $this->append('jsfiles', $web . '/' . $file);
     }
     // Add the css files
     $cssfiles = self::findStylesheetFiles(OC_Util::$styles);
     $this->assign('cssfiles', array());
     if (!empty(OC_Util::$core_styles)) {
         $this->append('cssfiles', OC_Helper::linkToRemoteBase('core.css', false));
     }
     foreach ($cssfiles as $info) {
         $root = $info[0];
         $web = $info[1];
         $file = $info[2];
         $paths = explode('/', $file);
         $in_root = false;
         foreach (OC::$APPSROOTS as $app_root) {
             if ($root == $app_root['path']) {
                 $in_root = true;
                 break;
             }
         }
         if ($in_root) {
             $app = $paths[0];
             unset($paths[0]);
             $path = implode('/', $paths);
             $this->append('cssfiles', OC_Helper::linkTo($app, $path));
         } else {
             $this->append('cssfiles', $web . '/' . $file);
         }
     }
 }
Exemple #19
0
    <!-- oC changes-->
	<script type="text/javascript" src="<?php 
print_unescaped(OCP\Util::linkTo('core', 'js/jquery-1.10.0.min.js'));
?>
"></script>
	<script type="text/javascript" src="<?php 
print_unescaped(OCP\Util::linkTo('core', 'js/jquery-migrate-1.2.1.min.js'));
?>
"></script>
	<script type="text/javascript" src="<?php 
print_unescaped(OC_Helper::linkTo('core', 'js/jquery-showpassword.js'));
?>
"></script>
	<script type="text/javascript" src="<?php 
print_unescaped(OC_Helper::linkTo('core', 'js/jquery-tipsy.js'));
?>
"></script>
	<script type="text/javascript" src="<?php 
print_unescaped(OCP\Util::linkToRoute('js_config'));
?>
"></script>
    <script type="text/javascript" src="<?php 
print_unescaped(OCP\Util::linkTo('core', 'js/oc-dialogs.js'));
?>
"></script>
    <script type="text/javascript" src="<?php 
print_unescaped(OCP\Util::linkTo('core', 'js/underscore.js'));
?>
"></script>
    <script type="text/javascript" src="<?php 
Exemple #20
0
" class="svg"><?php 
p($l->t('More'));
?>
	</span>
	<span class="task_less">
		<img title="<?php 
p($l->t('Less'));
?>
" src="<?php 
p(OCP\image_path('core', 'actions/triangle-n.svg'));
?>
" class="svg"><?php 
p($l->t('Less'));
?>
	</span>
	<span class="task_delete">
		<img title="<?php 
p($l->t('Delete'));
?>
" src="<?php 
p(OCP\image_path('core', 'actions/delete.svg'));
?>
" class="svg"><?php 
p($l->t('Delete'));
?>
	</span>
</p>
<script type="text/javascript" src="<?php 
print_unescaped(OC_Helper::linkTo('tasks/js', 'categories.php'));
?>
"></script>
Exemple #21
0
 /**
  * @small
  * test linkTo URL construction in sub directory
  * @dataProvider provideSubDirAppUrlParts
  */
 public function testLinkToSubDir($app, $file, $args, $expectedResult)
 {
     \OC::$WEBROOT = '/owncloud';
     $result = \OC_Helper::linkTo($app, $file, $args);
     $this->assertEquals($expectedResult, $result);
 }
Exemple #22
0
    $tmpl = new OC_Template('', '404', 'guest');
    $tmpl->printPage();
    exit;
}
if (isset($_['content'])) {
    ?>
	<?php 
    print_unescaped($_['content']);
} else {
    ?>
	<ul>
		<li class="error">
			<?php 
    p($l->t('File not found'));
    ?>
<br>
			<p class="hint"><?php 
    p($l->t('The specified document has not been found on the server.'));
    ?>
</p>
			<p class="hint"><a href="<?php 
    p(OC_Helper::linkTo('', 'index.php'));
    ?>
"><?php 
    p($l->t('You can click here to return to %s.', array($theme->getName())));
    ?>
</a></p>
		</li>
	</ul>
<?php 
}
<div id="controls">
	<a class="button newquestion" href="http://owncloud.org/support" target="_blank"><?php 
echo $l->t('Documentation');
?>
</a>
	<a class="button newquestion" href="http://owncloud.org/support/big-files" target="_blank"><?php 
echo $l->t('Managing Big Files');
?>
</a>
	<a class="button newquestion" href="http://apps.owncloud.com/knowledgebase/editquestion.php?action=new" target="_blank"><?php 
echo $l->t('Ask a question');
?>
</a>
	<?php 
$url = OC_Helper::linkTo("settings", "help.php") . '?page=';
$pageNavi = OC_Util::getPageNavi($_['pagecount'], $_['page'], $url);
if ($pageNavi) {
    $pageNavi->printPage();
}
?>
</diV>
<?php 
if (is_null($_["kbe"])) {
    ?>
	<div class="helpblock">
		<p><?php 
    echo $l->t('Problems connecting to help database.');
    ?>
</p>
		<p><a href="http://apps.owncloud.com/kb"><?php 
Exemple #24
0
<?php

/**
* ownCloud - user_webdavauth
*
* @author Frank Karlitschek
* @copyright 2012 Frank Karlitschek frank@owncloud.org
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
* License as published by the Free Software Foundation; either
* version 3 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU AFFERO GENERAL PUBLIC LICENSE for more details.
*
* You should have received a copy of the GNU Affero General Public
* License along with this library.  If not, see <http://www.gnu.org/licenses/>.
*
*/
require_once OC_App::getAppPath('user_webdavauth') . '/user_webdavauth.php';
OC_APP::registerAdmin('user_webdavauth', 'settings');
OC_User::registerBackend("WEBDAVAUTH");
OC_User::useBackend("WEBDAVAUTH");
// add settings page to navigation
$entry = array('id' => "user_webdavauth_settings", 'order' => 1, 'href' => OC_Helper::linkTo("user_webdavauth", "settings.php"), 'name' => 'WEBDAVAUTH');
Exemple #25
0
 /**
  * Creates an url to the given app and file
  * @param string $app app
  * @param string $file file
  * @param array $args array with param=>value, will be appended to the returned url
  * 	The value of $args will be urlencoded
  * @return string the url
  * @deprecated 8.1.0 Use \OC::$server->getURLGenerator()->linkTo($app, $file, $args)
  * @since 4.0.0 - parameter $args was added in 4.5.0
  */
 public static function linkTo($app, $file, $args = array())
 {
     return \OC_Helper::linkTo($app, $file, $args);
 }
Exemple #26
0
 /**
  * @brief Creates an url
  * @param $app app
  * @param $file file
  * @returns the url
  *
  * Returns a url to the given app and file.
  */
 public static function linkTo($app, $file)
 {
     return \OC_Helper::linkTo($app, $file);
 }
/**
 * make OC_Helper::linkTo available as a simple function
 * @param string $app app
 * @param string $file file
 * @param array $args array with param=>value, will be appended to the returned url
 * @return string link to the file
 *
 * For further information have a look at OC_Helper::linkTo
 */
function link_to($app, $file, $args = array())
{
    return OC_Helper::linkTo($app, $file, $args);
}
Exemple #28
0
/**
 * Copyright (c) 2011, Robin Appelman <*****@*****.**>
 * This file is licensed under the Affero General Public License version 3 or later.
 * See the COPYING-README file.
 */
?>
 <script type="text/javascript"
	src="<?php 
print_unescaped(OC_Helper::linkToRoute('apps_custom'));
?>
?appid=<?php 
p($_['appid']);
?>
"></script>
 <script type="text/javascript" src="<?php 
print_unescaped(OC_Helper::linkTo('settings/js', 'apps.js'));
?>
"></script>

<div id="controls">
	<a class="button" target="_blank" href="http://owncloud.org/dev"><?php 
p($l->t('Add your App'));
?>
</a>
	<a class="button" target="_blank" href="http://apps.owncloud.com"><?php 
p($l->t('More Apps'));
?>
</a>
</div>
<ul id="leftcontent" class="applist hascontrols">
	<?php 
Exemple #29
0
<script type="text/javascript" src="<?php 
print_unescaped(OC_Helper::linkTo('calendar/js', 'l10n.php'));
?>
"></script>

<div id="notification" style="display:none;"></div>
<div id="app-navigation">
	<ul id="navigation-list">
		<li>
				<div id="datecontrol_current"></div><input type="button" value="&nbsp;&lt;&nbsp;" id="datecontrol_left"/><input type="button" value="&nbsp;&gt;&nbsp;" id="datecontrol_right"/>
		</li>
		<li>
			<form id="datecontrol">
				<div id="datecontrol_date"  style="display:none"></div>
			</form>
		</li>
		<li>
			<form id="view">
				<input type="button" value="<?php 
p($l->t('Day'));
?>
" id="onedayview_radio"/><input type="button" value="<?php 
p($l->t('Week'));
?>
" id="oneweekview_radio"/><input type="button" value="<?php 
p($l->t('Month'));
?>
" id="onemonthview_radio"/>&nbsp;&nbsp;
				<input type="button" value="<?php 
p($l->t('Today'));
?>
Exemple #30
0
<script type="text/javascript" src="<?php 
print_unescaped(OC_Helper::linkTo('calendar/js', 'idtype.php'));
?>
?id=<?php 
p($_['eventid']);
?>
"></script>


<ul>
	<li><a href="#tabs-1"><?php 
p($l->t('Eventinfo'));
?>
</a></li>
	<li><a href="#tabs-2"><?php 
p($l->t('Repeating'));
?>
</a></li>
	<!--<li><a href="#tabs-3"><?php 
p($l->t('Alarm'));
?>
</a></li>
	<li><a href="#tabs-4"><?php 
p($l->t('Attendees'));
?>
</a></li>-->
	<?php 
if ($_['eventid'] != 'new' && $_['permissions'] & OCP\PERMISSION_SHARE) {
    ?>
	<li><a href="#tabs-5"><?php 
    p($l->t('Share'));