… | … | ||||
"Lock” symbol from thenounproject.com collection | "Lock” symbol from thenounproject.com collection | ||||
"Clock” symbol by Brandon Hopkins, from thenounproject.com collection | |||||
"Clock” symbol by Brandon Hopkins, from thenounproject.com collection |
All unmodified files from these and other sources retain their original copyright | All unmodified files from these and other sources retain their original copyright | ||||
and license notices: see the relevant individual files. | and license notices: see the relevant individual files. | ||||
Attribution information for ownCloud is contained in the AUTHORS file. | |||||
Attribution information for ownCloud is contained in the AUTHORS file. |
OCP\JSON::success(array('data' => $result['data'])); | OCP\JSON::success(array('data' => $result['data'])); | ||||
} else { | } else { | ||||
OCP\JSON::error(array('data' => $result['data'])); | OCP\JSON::error(array('data' => $result['data'])); | ||||
} | |||||
} |
->actionInclude('files/download.php'); | ->actionInclude('files/download.php'); | ||||
// Register with the capabilities API | // Register with the capabilities API | ||||
OC_API::register('get', '/cloud/capabilities', array('OCA\Files\Capabilities', 'getCapabilities'), 'files', OC_API::USER_AUTH); | |||||
OC_API::register('get', '/cloud/capabilities', array('OCA\Files\Capabilities', 'getCapabilities'), 'files', OC_API::USER_AUTH); |
removeA(keys, event.keyCode); | removeA(keys, event.keyCode); | ||||
}); | }); | ||||
}; | }; | ||||
})(Files); | |||||
})(Files); |
return $result; | return $result; | ||||
} | } | ||||
} | |||||
} |
)); | )); | ||||
} | } | ||||
} | |||||
} |
$this->assertEquals($expected, $result); | $this->assertEquals($expected, $result); | ||||
} | } | ||||
} | |||||
} |
\OCP\JSON::success(array('data' => array('message' => $l->t('Password successfully changed.')))); | \OCP\JSON::success(array('data' => array('message' => $l->t('Password successfully changed.')))); | ||||
} else { | } else { | ||||
\OCP\JSON::error(array('data' => array('message' => $l->t('Could not change the password. Maybe the old password was not correct.')))); | \OCP\JSON::error(array('data' => array('message' => $l->t('Could not change the password. Maybe the old password was not correct.')))); | ||||
} | |||||
} |
\OCP\JSON::success(array('data' => array('message' => $l->t('Private key password successfully updated.')))); | \OCP\JSON::success(array('data' => array('message' => $l->t('Private key password successfully updated.')))); | ||||
} else { | } else { | ||||
\OCP\JSON::error(array('data' => array('message' => $l->t('Could not update the private key password. Maybe the old password was not correct.')))); | \OCP\JSON::error(array('data' => array('message' => $l->t('Could not update the private key password. Maybe the old password was not correct.')))); | ||||
} | |||||
} |
} | } | ||||
// Return success or failure | // Return success or failure | ||||
($return) ? \OCP\JSON::success() : \OCP\JSON::error(); | |||||
($return) ? \OCP\JSON::success() : \OCP\JSON::error(); |
*/ | */ | ||||
// Register with the capabilities API | // Register with the capabilities API | ||||
OC_API::register('get', '/cloud/capabilities', array('OCA\Encryption\Capabilities', 'getCapabilities'), 'files_encryption', OC_API::USER_AUTH); | |||||
OC_API::register('get', '/cloud/capabilities', array('OCA\Encryption\Capabilities', 'getCapabilities'), 'files_encryption', OC_API::USER_AUTH); |
, #recoveryEnabledError | , #recoveryEnabledError | ||||
, #recoveryEnabledSuccess { | , #recoveryEnabledSuccess { | ||||
display: none; | display: none; | ||||
} | |||||
} |
); | ); | ||||
}); | }); | ||||
}); | |||||
}); |
updatePrivateKeyPasswd(); | updatePrivateKeyPasswd(); | ||||
}); | }); | ||||
}); | |||||
}); |
)); | )); | ||||
} | } | ||||
} | |||||
} |
return $targetPath; | return $targetPath; | ||||
} | } | ||||
} | |||||
} |
// tear down | // tear down | ||||
$view->unlink($filename); | $view->unlink($filename); | ||||
} | } | ||||
} | |||||
} |
. '.' . \Test_Encryption_Trashbin::TEST_ENCRYPTION_TRASHBIN_USER1 . '.shareKey.' . $trashFileSuffix)); | . '.' . \Test_Encryption_Trashbin::TEST_ENCRYPTION_TRASHBIN_USER1 . '.shareKey.' . $trashFileSuffix)); | ||||
} | } | ||||
} | |||||
} |
// return captured content | // return captured content | ||||
return $content; | return $content; | ||||
} | } | ||||
} | |||||
} |
$_POST['mountType'], | $_POST['mountType'], | ||||
$_POST['applicable'], | $_POST['applicable'], | ||||
$isPersonal); | $isPersonal); | ||||
OCP\JSON::success(array('data' => array('message' => $status))); | |||||
OCP\JSON::success(array('data' => array('message' => $status))); |
} | } | ||||
} | } | ||||
} | } | ||||
} | |||||
} |
} | } | ||||
}); | }); | ||||
}); | |||||
}); |
return false; | return false; | ||||
} | } | ||||
} | |||||
} |
$this->instance->rmdir('/'); | $this->instance->rmdir('/'); | ||||
} | } | ||||
} | } | ||||
} | |||||
} |
\OC_Hook::connect('OC_Filesystem', 'delete', '\OC\Files\Cache\Shared_Updater', 'deleteHook'); | \OC_Hook::connect('OC_Filesystem', 'delete', '\OC\Files\Cache\Shared_Updater', 'deleteHook'); | ||||
\OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Shared_Updater', 'renameHook'); | \OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Shared_Updater', 'renameHook'); | ||||
\OC_Hook::connect('OCP\Share', 'post_shared', '\OC\Files\Cache\Shared_Updater', 'shareHook'); | \OC_Hook::connect('OCP\Share', 'post_shared', '\OC\Files\Cache\Shared_Updater', 'shareHook'); | ||||
\OC_Hook::connect('OCP\Share', 'pre_unshare', '\OC\Files\Cache\Shared_Updater', 'shareHook'); | |||||
\OC_Hook::connect('OCP\Share', 'pre_unshare', '\OC\Files\Cache\Shared_Updater', 'shareHook'); |
} | } | ||||
}); | }); | ||||
} | } | ||||
}); | |||||
}); |
return false; | return false; | ||||
} | } | ||||
} | |||||
} |
// Not a valid action for Shared Permissions | // Not a valid action for Shared Permissions | ||||
} | } | ||||
} | |||||
} |
} | } | ||||
} | } | ||||
} | |||||
} |
</ul> | </ul> | ||||
<p><?php p($l->t('For more info, please ask the person who sent this link.')); ?></p> | <p><?php p($l->t('For more info, please ask the person who sent this link.')); ?></p> | ||||
</li> | </li> | ||||
</ul> | |||||
</ul> |
OC::$CLASSPATH['OCA\Files_Trashbin\Trashbin'] = 'files_trashbin/lib/trash.php'; | OC::$CLASSPATH['OCA\Files_Trashbin\Trashbin'] = 'files_trashbin/lib/trash.php'; | ||||
// register hooks | // register hooks | ||||
\OCA\Files_Trashbin\Trashbin::registerHooks(); | |||||
\OCA\Files_Trashbin\Trashbin::registerHooks(); |
//enforce a recalculation during next usage. | //enforce a recalculation during next usage. | ||||
$query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trashsize`'); | $query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trashsize`'); | ||||
$result = $query->execute(); | $result = $query->execute(); | ||||
} | |||||
} |
/* disable download and sharing actions */ | /* disable download and sharing actions */ | ||||
var disableDownloadActions = true; | var disableDownloadActions = true; | ||||
var disableSharing = true; | var disableSharing = true; | ||||
var trashBinApp = true; | |||||
var trashBinApp = true; |
*/ | */ | ||||
// Register with the capabilities API | // Register with the capabilities API | ||||
OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', OC_API::USER_AUTH); | |||||
OC_API::register('get', '/cloud/capabilities', array('OCA\Files_Versions\Capabilities', 'getCapabilities'), 'files_versions', OC_API::USER_AUTH); |
)); | )); | ||||
} | } | ||||
} | |||||
} |
} else { | } else { | ||||
$l=OC_L10N::get('user_ldap'); | $l=OC_L10N::get('user_ldap'); | ||||
OCP\JSON::error(array('message' => $l->t('Failed to clear the mappings.'))); | OCP\JSON::error(array('message' => $l->t('Failed to clear the mappings.'))); | ||||
} | |||||
} |
$prefix = $_POST['ldap_serverconfig_chooser']; | $prefix = $_POST['ldap_serverconfig_chooser']; | ||||
$connection = new \OCA\user_ldap\lib\Connection($prefix); | $connection = new \OCA\user_ldap\lib\Connection($prefix); | ||||
OCP\JSON::success(array('configuration' => $connection->getConfiguration())); | |||||
OCP\JSON::success(array('configuration' => $connection->getConfiguration())); |
$lk = array_pop($serverConnections); | $lk = array_pop($serverConnections); | ||||
$ln = intval(str_replace('s', '', $lk)); | $ln = intval(str_replace('s', '', $lk)); | ||||
$nk = 's'.str_pad($ln+1, 2, '0', STR_PAD_LEFT); | $nk = 's'.str_pad($ln+1, 2, '0', STR_PAD_LEFT); | ||||
OCP\JSON::success(array('configPrefix' => $nk)); | |||||
OCP\JSON::success(array('configPrefix' => $nk)); |
$connection = new \OCA\user_ldap\lib\Connection($prefix); | $connection = new \OCA\user_ldap\lib\Connection($prefix); | ||||
$connection->setConfiguration($_POST); | $connection->setConfiguration($_POST); | ||||
$connection->saveConfiguration(); | $connection->saveConfiguration(); | ||||
OCP\JSON::success(); | |||||
OCP\JSON::success(); |
.ldapwarning { | .ldapwarning { | ||||
margin-left: 1.4em; | margin-left: 1.4em; | ||||
color: #FF3B3B; | color: #FF3B3B; | ||||
} | |||||
} |
//it's the same across all our user backends obviously | //it's the same across all our user backends obviously | ||||
return $this->refBackend->implementsActions($actions); | return $this->refBackend->implementsActions($actions); | ||||
} | } | ||||
} | |||||
} |
LdapConfiguration.refreshConfig(); | LdapConfiguration.refreshConfig(); | ||||
} | } | ||||
}); | }); | ||||
}); | |||||
}); |
public function clearCache() { | public function clearCache() { | ||||
$this->cache->clear($this->getCacheKey(null)); | $this->cache->clear($this->getCacheKey(null)); | ||||
} | } | ||||
} | |||||
} |
return $this->refBackend->hasUserListings(); | return $this->refBackend->hasUserListings(); | ||||
} | } | ||||
} | |||||
} |
font-size:1.2em; | font-size:1.2em; | ||||
margin:.7em; | margin:.7em; | ||||
padding:0; | padding:0; | ||||
} | |||||
} |
}); | }); | ||||
}; | }; | ||||
}(jQuery)); | |||||
}(jQuery)); |
// By the way, iOS (iPad, iPhone, ...) seems to not execute, or at least delays | // By the way, iOS (iPad, iPhone, ...) seems to not execute, or at least delays | ||||
// intervals while the user scrolls. Therefore the inview event might fire a bit late there | // intervals while the user scrolls. Therefore the inview event might fire a bit late there | ||||
setInterval(checkInView, 250); | setInterval(checkInView, 250); | ||||
})(jQuery); | |||||
})(jQuery); |
$(document).bind('ajaxSend', function(elm, xhr, s) { | $(document).bind('ajaxSend', function(elm, xhr, s) { | ||||
xhr.setRequestHeader('requesttoken', oc_requesttoken); | xhr.setRequestHeader('requesttoken', oc_requesttoken); | ||||
}); | |||||
}); |
$(document).ready(function () { | $(document).ready(function () { | ||||
var visitortimezone = (-new Date().getTimezoneOffset() / 60); | var visitortimezone = (-new Date().getTimezoneOffset() / 60); | ||||
$('#timezone-offset').val(visitortimezone); | $('#timezone-offset').val(visitortimezone); | ||||
}); | |||||
}); |
<?php | <?php | ||||
echo str_replace('{link}', $_['link'], $l->t('Use the following link to reset your password: {link}')); | |||||
echo str_replace('{link}', $_['link'], $l->t('Use the following link to reset your password: {link}')); |
// used for heartbeat | // used for heartbeat | ||||
$this->create('heartbeat', '/heartbeat')->action(function(){ | $this->create('heartbeat', '/heartbeat')->action(function(){ | ||||
// do nothing | // do nothing | ||||
}); | |||||
}); |
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
\OCP\Util::writeLog('cron', $ex->getMessage(), \OCP\Util::FATAL); | \OCP\Util::writeLog('cron', $ex->getMessage(), \OCP\Util::FATAL); | ||||
} | |||||
} |
public function touch($path, $mtime=null) { | public function touch($path, $mtime=null) { | ||||
return $this->storage->touch($path, $mtime); | return $this->storage->touch($path, $mtime); | ||||
} | } | ||||
} | |||||
} |
reset($variances); | reset($variances); | ||||
return current($variances); | return current($variances); | ||||
} | } | ||||
} | |||||
} |
} | } | ||||
} | |||||
} |
namespace OCP; | namespace OCP; | ||||
interface GroupInterface extends \OC_Group_Interface {} | |||||
interface GroupInterface extends \OC_Group_Interface {} |
namespace OCP; | namespace OCP; | ||||
interface UserInterface extends \OC_User_Interface {} | |||||
interface UserInterface extends \OC_User_Interface {} |
return false; | return false; | ||||
} | } | ||||
} | } | ||||
} | |||||
} |
* @return boolean if users can be listed or not | * @return boolean if users can be listed or not | ||||
*/ | */ | ||||
public function hasUserListings(); | public function hasUserListings(); | ||||
} | |||||
} |
} | } | ||||
} | |||||
} |
} | } | ||||
} | |||||
} |
array('OC_OCS_Cloud', 'getCapabilities'), | array('OC_OCS_Cloud', 'getCapabilities'), | ||||
'core', | 'core', | ||||
OC_API::USER_AUTH | OC_API::USER_AUTH | ||||
); | |||||
); |
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); | OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); | ||||
\OCP\Util::writeLog('remote', $ex->getMessage(), \OCP\Util::FATAL); | \OCP\Util::writeLog('remote', $ex->getMessage(), \OCP\Util::FATAL); | ||||
OC_Template::printExceptionErrorPage($ex); | OC_Template::printExceptionErrorPage($ex); | ||||
} | |||||
} |
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); | OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); | ||||
\OCP\Util::writeLog('remote', $ex->getMessage(), \OCP\Util::FATAL); | \OCP\Util::writeLog('remote', $ex->getMessage(), \OCP\Util::FATAL); | ||||
OC_Template::printExceptionErrorPage($ex); | OC_Template::printExceptionErrorPage($ex); | ||||
} | |||||
} |
#searchresults tr.current { | #searchresults tr.current { | ||||
background-color:#ddd; | background-color:#ddd; | ||||
} | |||||
} |
OC_Config::setValue( 'forcessl', filter_var($_POST['enforceHTTPS'], FILTER_VALIDATE_BOOLEAN)); | OC_Config::setValue( 'forcessl', filter_var($_POST['enforceHTTPS'], FILTER_VALIDATE_BOOLEAN)); | ||||
echo 'true'; | |||||
echo 'true'; |
} else { | } else { | ||||
$l = OC_L10N::get('settings'); | $l = OC_L10N::get('settings'); | ||||
OC_JSON::error(array("data" => array( "message" => $l->t("Couldn't update app.") ))); | OC_JSON::error(array("data" => array( "message" => $l->t("Couldn't update app.") ))); | ||||
} | |||||
} |
echo("\n"); | echo("\n"); | ||||
} | } | ||||
echo ("var appid =".json_encode($_GET['appid']).";"); | |||||
echo ("var appid =".json_encode($_GET['appid']).";"); |
echo("var isadmin = true;"); | echo("var isadmin = true;"); | ||||
} else { | } else { | ||||
echo("var isadmin = false;"); | echo("var isadmin = false;"); | ||||
} | |||||
} |
} catch (Exception $ex) { | } catch (Exception $ex) { | ||||
OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); | OC_Response::setStatus(OC_Response::STATUS_INTERNAL_SERVER_ERROR); | ||||
\OCP\Util::writeLog('remote', $ex->getMessage(), \OCP\Util::FATAL); | \OCP\Util::writeLog('remote', $ex->getMessage(), \OCP\Util::FATAL); | ||||
} | |||||
} |
$this->assertFalse(OC_App::isAppVersionCompatible($oc, $app)); | $this->assertFalse(OC_App::isAppVersionCompatible($oc, $app)); | ||||
} | } | ||||
} | |||||
} |
return new OC_Archive_ZIP(OCP\Files::tmpFile('.zip')); | return new OC_Archive_ZIP(OCP\Files::tmpFile('.zip')); | ||||
} | } | ||||
} | } | ||||
} | |||||
} |
$expected = 'Pacific/Enderbury'; | $expected = 'Pacific/Enderbury'; | ||||
$this->assertEquals($expected, $result); | $this->assertEquals($expected, $result); | ||||
} | } | ||||
} | |||||
} |
$parts = $property->getParts(); | $parts = $property->getParts(); | ||||
$this->assertEquals('Marketing;Sales', $parts[2]); | $this->assertEquals('Marketing;Sales', $parts[2]); | ||||
} | } | ||||
} | |||||
} |