public function testPrintUnescapedNormalString() { $normalString = "This is a good string!"; ob_start(); print_unescaped($normalString); $result = ob_get_clean(); ob_end_clean(); $this->assertEqual("This is a good string!", $result); }
?> <a class="button newquestion" href="http://owncloud.org/support" target="_blank"><?php p($l->t('Online Documentation')); ?> </a> <a class="button newquestion" href="http://forum.owncloud.org" target="_blank"><?php p($l->t('Forum')); ?> </a> <?php if ($_['admin']) { ?> <a class="button newquestion" href="https://github.com/owncloud/core/blob/master/CONTRIBUTING.md" target="_blank"><?php p($l->t('Bugtracker')); ?> </a> <?php } ?> <a class="button newquestion" href="http://owncloud.com" target="_blank"><?php p($l->t('Commercial Support')); ?> </a> </div> <div class="help-includes"> <iframe src="<?php print_unescaped($_['url']); ?> " class="help-iframe">abc</iframe> </div>
<label class="bold"><?php p($l->t('Primary CalDAV address')); ?> </label> <input id="primarycaldav" type="text" value="<?php print_unescaped(OCP\Util::linkToRemote('caldav')); ?> " style="width:90%" readonly> </li> <li> <label class="bold"><?php p($l->t('iOS/OS X CalDAV address')); ?> </label> <input id="ioscaldav" type="text" value="<?php print_unescaped(OCP\Util::linkToRemote('caldav')); ?> principals/<?php p(urlencode(OCP\USER::getUser())); ?> /" style="width:90%" readonly> </li> </ul> </div> </div> <!-- End of settings --> </div> <div id="app-content"> <div id="fullcalendar"><div id="loading" class="icon-loading"></div></div> <div id="dialog_holder"></div> </div>
</form> <?php if (!empty($_['alt_login'])) { ?> <form id="alternative-logins"> <fieldset> <legend><?php p($l->t('Alternative Logins')); ?> </legend> <ul> <?php foreach ($_['alt_login'] as $login) { ?> <li><a class="button" href="<?php print_unescaped($login['href']); ?> " ><?php p($login['name']); ?> </a></li> <?php } ?> </ul> </fieldset> </form> <?php } ?>
<?php } ?> </span> </th> <th id="headerSize"><?php p($l->t('Size')); ?> </th> <th id="headerDate"> <span id="modified"><?php p($l->t('Modified')); ?> </span> </th> </tr> </thead> <tbody id="fileList"> <?php print_unescaped($_['fileList']); ?> </tbody> </table> <div id="editor"></div> <!-- config hints for javascript --> <input type="hidden" name="allowZipDownload" id="allowZipDownload" value="<?php p($_['allowZipDownload']); ?> " />
<?php script('user_permission', 'script'); style('user_permission', 'style'); ?> <div id="app"> <div id="app-navigation"> <?php print_unescaped($this->inc('part.navigation')); ?> <?php print_unescaped($this->inc('part.settings')); ?> </div> <div id="app-content"> <div id="app-content-wrapper"> <?php print_unescaped($this->inc('part.content')); ?> </div> </div> </div>
?> <link><?php p($activity['link']); ?> </link> <?php } if (!empty($activity['timestamp'])) { ?> <pubDate><?php p(date('r', $activity['timestamp'])); ?> </pubDate> <?php } if (!empty($activity['message'])) { ?> <description><![CDATA[<?php print_unescaped(str_replace("\n", '<br />', \OCP\Util::sanitizeHTML($activity['messageformatted']['full']))); ?> ]]></description> <?php } ?> </item> <?php } ?> </channel> </rss>
?> "> <div class="icon-loading-dark" style="display:none;"></div> <span> <?php p($l->t('Apps')); ?> </span> </a> </li> <?php } ?> </ul> </div> </div></nav> <div id="content-wrapper"> <div id="content" class="app-<?php p($_['appid']); ?> " role="main"> <?php print_unescaped($_['content']); ?> </div> </div> </body> </html>
</div> <?php } $lastDate = $currentDate; ?> <div class="section activity-section group" data-date="<?php p($currentDate); ?> "> <h2> <span class="tooltip" title="<?php p($dateTimeFormatter->formatDate($event['timestamp'])); ?> "> <?php p(ucfirst($currentDate)); ?> </span> </h2> <div class="boxcontainer"> <?php } print_unescaped($displayHelper->show($event)); } if (!empty($_['activity'])) { ?> </div> </div> <?php }
" data-deprecate-to="<?php p($deprecateTo->getIdentifier()); ?> " /> <?php } else { ?> <input type="checkbox" id="allowUserMountingBackends<?php p($i); ?> " class="checkbox" name="allowUserMountingBackends[]" value="<?php p($backend->getIdentifier()); ?> " <?php if ($backend->isVisibleFor(BackendService::VISIBILITY_PERSONAL)) { print_unescaped(' checked="checked"'); } ?> /> <label for="allowUserMountingBackends<?php p($i); ?> "><?php p($backend->getText()); ?> </label> <br /> <?php } ?> <?php $i++;
?> " class="svg action delete" title="<?php p($l->t('Unshare')); ?> "> </span> </li> <?php } ?> </ul> <?php if (!$eventsharees) { $nobody = $l->t('Nobody'); print_unescaped('<div id="sharedWithNobody">' . OC_Util::sanitizeHTML($nobody) . '</div>'); } ?> <br /> <strong><?php p($l->t('Shared via calendar')); ?> </strong> <ul class="sharedby calendarlist"> <?php foreach ($calsharees as $sharee) { ?> <li data-share-with="<?php p($sharee['share_with']); ?> "
</label> <img class="svg" src="<?php print_unescaped(image_path('', 'actions/user.svg')); ?> " alt=""/> <?php if ($_['isEncrypted']) { ?> <br /><br /> <?php print_unescaped($l->t("Your files are encrypted. If you haven't enabled the recovery key, there will be no way to get your data back after your password is reset. If you are not sure what to do, please contact your administrator before you continue. Do you really want to continue?")); ?> <br /> <input type="checkbox" name="continue" value="Yes" /> <?php print_unescaped($l->t('Yes, I really want to reset my password now')); ?> <br/><br/> <?php } ?> </p> <input type="submit" id="submit" value="<?php echo $l->t('Request reset'); ?> " /> <?php } ?> </fieldset> </form>
} ?> value='none'> <?php p($l->t('Unlimited')); ?> </option> <?php foreach ($_['quota_preset'] as $preset) { ?> <?php if ($preset !== 'default') { ?> <option <?php if ($_['default_quota'] == $preset) { print_unescaped('selected="selected"'); } ?> value='<?php p($preset); ?> '> <?php p($preset); ?> </option> <?php } ?> <?php }
?> "/></span> <span class="ldap_config_state_indicator"></span> <span class="ldap_config_state_indicator_sign"></span> <button class="ldap_action_back invisible" name="ldap_action_back" type="button"> <?php p($l->t('Back')); ?> </button> <button class="ldap_action_continue" name="ldap_action_continue" type="button"> <?php p($l->t('Continue')); ?> </button> <a href="<?php p(link_to_docs('admin-ldap')); ?> " target="_blank" rel="noreferrer"> <img src="<?php print_unescaped(image_path('', 'actions/info.png')); ?> " style="height:1.75ex" /> <span class="ldap_grey"><?php p($l->t('Help')); ?> </span> </a> </div>
<?php OCP\Util::addStyle('lostpassword', 'resetpassword'); ?> <form action="<?php print_unescaped($_['link']); ?> " id="reset-password" method="post"> <fieldset> <p> <label for="password" class="infield"><?php p($l->t('New password')); ?> </label> <input type="password" name="password" id="password" value="" placeholder="<?php p($l->t('New Password')); ?> " required /> <img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?> " alt=""/> </p> <input type="submit" id="submit" value="<?php p($l->t('Reset password')); ?> " /> </fieldset> </form> <?php OCP\Util::addScript('core', 'lostpassword');
?> </th> <th> <?php p($l->t('Experience')); ?> </th> </tr> <?php foreach ($_['members'] as $member => $cnt) { if (!is_null($member) && $member != '0') { $skills = OC_Collaboration_Skillset::readSkills($member); $skl_cnt = count($skills); if ($skl_cnt == 0) { print_unescaped('<tr><td>' . $member . '</td><td>' . $cnt['proj_cnt'] . '</td><td>' . $cnt['tot_cnt'] . '</td><td colspan="3" >' . $l->t('Skills yet to be added by member') . '</td></tr>'); } else { print_unescaped('<tr><td rowspan="' . $skl_cnt . '" >' . $member . '</td><td rowspan="' . $skl_cnt . '" >' . $cnt['proj_cnt'] . '</td><td rowspan="' . $skl_cnt . '" >' . $cnt['tot_cnt'] . '</td>'); foreach ($skills as $skill) { print_unescaped('<td>' . $skill['skill'] . '</td><td>' . OC_Collaboration_Skillset::getExpertiseString($skill['expertise']) . '</td><td>' . $skill['experience'] . ' ' . $l->t('year(s)') . '</td></tr><tr>'); } print_unescaped('</tr>'); } } } ?> </table> </div>
</fieldset> <fieldset id="casSettings-2"> <p><label for="cas_autocreate"><?php p($l->t('Autocreate user after CAS login?')); ?> </label><input type="checkbox" id="cas_autocreate" name="cas_autocreate" <?php print_unescaped($_['cas_autocreate'] != false ? 'checked="checked"' : ''); ?> ></p> <p><label for="cas_update_user_data"><?php p($l->t('Update user data after login?')); ?> </label><input type="checkbox" id="cas_update_user_data" name="cas_update_user_data" <?php print_unescaped($_['cas_update_user_data'] != false ? 'checked="checked"' : ''); ?> ></p> <p><label for="cas_protected_groups"><?php p($l->t('Groups that will not be unlinked from the user when sync the CAS server and the owncloud')); ?> </label><input type="text" id="cas_protected_groups" name="cas_protected_groups" value="<?php p($_['cas_protected_groups']); ?> " /></p> <?php p($l->t('(protected grop are multivalued, use comma to separate the values)')); ?> <p><label for="cas_default_group"><?php p($l->t('Default group when autocreating users and no group data was found for the user')); ?> </label><input type="text" id="cas_default_group" name="cas_default_group" value="<?php
</span> <a class="action" href="#"> <img src="<?php print_unescaped(\OCP\Util::imagePath('core', 'actions/rename.svg')); ?> " /> </a> </span> <div class="easybackup_explanation easybackup_bullet"> 4) <?php p($l->t('Start backing up your data manually or on regular basis')); ?> </div> <form action="<?php print_unescaped($_['backupUrl']); ?> "> <button id="easybackup_goToBackup" type="submit" <?php if ($_['statusContainer']->getOverallStatus() != \OCA\EasyBackup\StatusContainer::OK) { print_unescaped('"disabled"'); } ?> > <?php p($l->t('Backup...')); ?> </button> </form> <!-- Invisible target for upload response --> <iframe id="easybackup_upload_target" style="visibility: hidden; width: 1px; height: 1px" name="easybackup_upload_target" src=""></iframe>
* ownCloud - Calendar App * * @author Raghu Nayyar * @author Georg Ehrke * @copyright 2016 Raghu Nayyar <*****@*****.**> * @copyright 2016 Georg Ehrke <*****@*****.**> * * 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/>. * */ ?> <ul class="app-navigation-list subscription-list"> <div ng-class="{loading: is.loading}"></div> <li ng-repeat="calendar in calendars | orderBy:['order'] | subscriptionFilter" class="app-navigation-list-item" ng-class="{active: calendar.enabled}"> <?php print_unescaped($this->inc('part.calendarlist.item')); ?> </li> </ul>
<h1 class="hidden-visually"> <?php p($theme->getName()); ?> </h1> </div> <div id="logo-claim" style="display:none;"><?php p($theme->getLogoClaim()); ?> </div> </div> </header> <?php } ?> <?php print_unescaped($_['content']); ?> <div class="push"></div><!-- for sticky footer --> </div> </div> <footer role="contentinfo"> <p class="info"> <?php print_unescaped($theme->getLongFooter()); ?> </p> </footer> </body> </html>
print_unescaped($this->inc('part.createsubscription')); ?> </div> <?php print_unescaped($this->inc('part.subscriptionlist')); ?> </div> <div id="app-settings" ng-controller="SettingsController"> <?php print_unescaped($this->inc('part.settings')); ?> </div> </div> </div> <!-- The Calendar on the right --> <div id="app-content"> <?php print_unescaped($this->inc('part.fullcalendar')); ?> </div> <!-- The Event Editor --> <div ng-controller="EventsModalController" class="hide"> <?php print_unescaped($this->inc('part.event.dialog')); ?> </div> </div>
p($l->t('New Password')); ?> " required /> <img class="svg" id="password-icon" src="<?php print_unescaped(image_path('', 'actions/password.svg')); ?> " alt=""/> </p> <input type="submit" id="submit" value="<?php p($l->t('Reset password')); ?> " /> </fieldset> <fieldset id="gohome" style="display:none" class="warning"> <p><?php print_unescaped($l->t("Mot de passe changé avec succès. Vous allez être redirigé vers la page d'acceuil du service. <a href=\"/\">Cliquez ici pour y accéder tout de suite</a>.")); ?> </p> </fieldset> </form> <div id="password_policy" class="section"> </div> <?php OCP\Util::addScript('core', 'lostpassword'); OCP\Util::addScript('password_policy', 'lostpassword'); ?> <div>
* * This program 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, version 3, * along with this program. If not, see <http://www.gnu.org/licenses/> * */ style('core', 'lostpassword/resetpassword'); script('core', 'lostpassword'); ?> <form action="<?php print_unescaped($_['link']); ?> " id="reset-password" method="post"> <fieldset> <p> <label for="password" class="infield"><?php p($l->t('New password')); ?> </label> <input type="password" name="password" id="password" value="" placeholder="<?php p($l->t('New Password')); ?> " required /> </p> <input type="submit" id="submit" value="<?php p($l->t('Reset password'));
</h2> <strong><?php p($theme->getTitle()); ?> </strong> <?php p(OC_Util::getHumanVersion()); ?> <?php include 'settings.development.notice.php'; ?> </div> <?php if (!empty($_['updaterAppPanel'])) { ?> <div id="updater"><?php print_unescaped($_['updaterAppPanel']); ?> </div> <?php } ?> <div class="section credits-footer"> <p><?php print_unescaped($theme->getShortFooter()); ?> </p> </div> </div>
</a></li> <li class="<?php print_unescaped($_['subTemplate'] == 'backup.inc' ? 'active' : ''); ?> "><a href="<?php print_unescaped($_['backupUrl']); ?> "><?php p($l->t('Backup')); ?> </a></li> <li class="<?php print_unescaped($_['subTemplate'] == 'restore.inc' ? 'active' : ''); ?> "><a href="<?php print_unescaped($_['restoreUrl']); ?> "><?php p($l->t('Recovery')); ?> </a></li> </ul> </div> <div id="app-content"> <div id="easybackup_content"> <div id="easybackup_partner"> <span class="easybackup_logo"> </span> free! partner edition with <a class="easybackup_agitos_logo" href="http://www.trustedspace.de" target="_new"> </a> </div> <div> <?php p($l->t('Access forbidden: You need administrator rights to use this app'));
<ul class="error-wide"> <?php foreach ($_["errors"] as $error) { ?> <li class='error'> <?php p($error['error']); ?> <br> <?php if (isset($error['hint']) && $error['hint']) { ?> <p class='hint'><?php print_unescaped($error['hint']); ?> </p> <?php } ?> </li> <?php } ?> </ul>
</tr> <?php } ?> <tr> <th><?php p($l->t('Calendar color')); ?> </th> <td> <input type="hidden" class="minicolor" id="calendarcolor_<?php p($_['calendar']['id']); ?> " value="<?php print_unescaped($_['calendar']['calendarcolor']); ?> " /> </td> </tr> </table> <input style="float: right; margin-left:5px;" id="editCalendar-submit" type="button" data-id="<?php p($_['new'] ? "new" : $_['calendar']['id']); ?> " value="<?php p($_['new'] ? $l->t("Save") : $l->t("Submit")); ?> "> <input style="float: right; margin-left:5px;" id="editCalendar-cancel" type="button" data-id="<?php p($_['new'] ? "new" : $_['calendar']['id']);
?> " class="isgroup"> <a href="#" class="dorename"> <span class="groupname"><?php p($group['name']); ?> </span> </a> <span class="utils"> <span class="usercount"><?php if ($group['usercount'] > 0) { p($group['usercount']); } ?> </span> <a href="#" class="action delete" original-title="<?php p($l->t('Delete')); ?> "> <img src="<?php print_unescaped(image_path('core', 'actions/delete.svg')); ?> " class="svg" /> </a> </span> </li> <?php } ?> </ul>
<div id="app-settings-content"> <?php print_unescaped($this->inc('users/part.setquota')); ?> <div id="userlistoptions"> <p><label> <input type="checkbox" name="StorageLocation" value="StorageLocation" id="CheckboxStorageLocation"> <?php p($l->t('Show storage location')); ?> </label></p> <p><label> <input type="checkbox" name="LastLogin" value="LastLogin" id="CheckboxLastLogin"> <?php p($l->t('Show last log in')); ?> </label></p> </div> </div> </div> </div> <div id="app-content"> <?php print_unescaped($this->inc('users/part.createuser')); ?> <?php print_unescaped($this->inc('users/part.userlist', $userlistParams)); ?> </div>
<?php print_unescaped($this->inc('part.content.cronwarning')); ?> <div id="explore"> <div ng-repeat="(category, data) in Explore.sites | orderBy:'category.toLowerCase()'" ng-if="Explore.isCategoryShown(data)" class="explore-section"> <h2>{{ category }}</h2> <ul> <li ng-repeat="entry in data | orderBy:'-votes'" ng-if="!Explore.feedExists(entry.feed)"> <h3 ng-show="entry.favicon" ng-style="{ backgroundImage: 'url(' + entry.favicon + ')'}"> <a target="_blank" ng-href="{{ entry.url }}">{{ entry.title }}</a> </h3> <h3 ng-hide="entry.favicon" class="icon-rss"> {{ entry.title }} </h3> <div class="explore-content"> {{ entry.description }} <div class="explore-logo"> <img ng-src="{{ entry.image }}" ng-if="entry.image"> </div> </div> <div class="explore-subscribe"> <button ng-click="Explore.subscribeTo(entry.feed)"> <?php p($l->t('Subscribe'));