var defaultView = '<?phpechoOC_Preferences::getValue(OC_USER::getUser(),'calendar','currentview','month')?>';
var defaultView = '<?phpechoOC_Preferences::getValue(OCP\USER::getUser(),'calendar','currentview','month')?>';
var eventSources = <?phpechojson_encode($_['eventSources'])?>;
var categories = <?phpechojson_encode($_['categories']);?>;
var dayNames = <?phpechojson_encode($l->tA(array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday')))?>;
var dayNamesShort = <?phpechojson_encode($l->tA(array('Sun.','Mon.','Tue.','Wed.','Thu.','Fri.','Sat.')))?>;
var monthNames = <?phpechojson_encode($l->tA(array('January','February','March','April','May','June','July','August','September','October','November','December')))?>;
var monthNamesShort = <?phpechojson_encode($l->tA(array('Jan.','Feb.','Mar.','Apr.','May.','Jun.','Jul.','Aug.','Sep.','Oct.','Nov.','Dec.')))?>;
var agendatime = '<?phpecho((int)OC_Preferences::getValue(OC_USER::getUser(),'calendar','timeformat','24')==24?'HH:mm':'hh:mm tt');?>{ - <?phpecho((int)OC_Preferences::getValue(OC_USER::getUser(),'calendar','timeformat','24')==24?'HH:mm':'hh:mm tt');?>}';
var defaulttime = '<?phpecho((int)OC_Preferences::getValue(OC_USER::getUser(),'calendar','timeformat','24')==24?'HH:mm':'hh:mm tt');?>';
var agendatime = '<?phpecho((int)OC_Preferences::getValue(OCP\USER::getUser(),'calendar','timeformat','24')==24?'HH:mm':'hh:mm tt');?>{ - <?phpecho((int)OC_Preferences::getValue(OCP\USER::getUser(),'calendar','timeformat','24')==24?'HH:mm':'hh:mm tt');?>}';
var defaulttime = '<?phpecho((int)OC_Preferences::getValue(OCP\USER::getUser(),'calendar','timeformat','24')==24?'HH:mm':'hh:mm tt');?>';
var allDayText = '<?phpechoaddslashes($l->t('All day'))?>';
var newcalendar = '<?phpechoaddslashes($l->t('New Calendar'))?>';
var missing_field = '<?phpechoaddslashes($l->t('Missing fields'))?>';
@ -20,7 +20,7 @@
var missing_field_startsbeforeends = '<?phpechoaddslashes($l->t('The event ends before it starts'))?>';
var missing_field_dberror = '<?phpechoaddslashes($l->t('There was a database fail'))?>';
var totalurl = '<?phpechoOC_Helper::linkToAbsolute('calendar','caldav.php');?>/calendars';
var firstDay = '<?phpecho(OC_Preferences::getValue(OC_USER::getUser(),'calendar','firstday','mo')=='mo'?'1':'0');?>';
var firstDay = '<?phpecho(OC_Preferences::getValue(OCP\USER::getUser(),'calendar','firstday','mo')=='mo'?'1':'0');?>';
public static function unshare($source, $uid_shared_with) {
$source = self::cleanPath($source);
$query = OC_DB::prepare("DELETE FROM *PREFIX*sharing WHERE SUBSTR(source, 1, ?) = ? AND uid_owner = ? AND uid_shared_with ".self::getUsersAndGroups($uid_shared_with));
$sql = 'SELECT COUNT(*) as size FROM *PREFIX*gallery_photos photos, *PREFIX*gallery_albums albums WHERE photos.album_id = albums.album_id AND uid_owner = ? AND file_path LIKE ?';
<?phpecho((isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=='on')?'https':'http').'://'.OC_Helper::serverHost().OC::$WEBROOT.'/?';echoOC_User::getUser();?><br/><em><?phpecho$l->t('you can authenticate to other sites with this address');?></em><br/>
<?phpecho((isset($_SERVER['HTTPS'])&&$_SERVER['HTTPS']=='on')?'https':'http').'://'.OC_Helper::serverHost().OC::$WEBROOT.'/?';echoOCP\USER::getUser();?><br/><em><?phpecho$l->t('you can authenticate to other sites with this address');?></em><br/>