@ -38,7 +38,7 @@ class OC_OCS {
* @param default $default
* @return data
*/
public static function readd ata($key,$type='raw',$getpriority=false,$default='') {
public static function readD ata($key,$type='raw',$getpriority=false,$default='') {
if($getpriority) {
if(isset($_GET[$key])) {
$data=$_GET[$key];
@ -147,7 +147,7 @@ class OC_OCS {
* generated some debug information to make it easier to find faild API calls
* @return debug data string
*/
private static function getdebugo utput() {
private static function getDebugO utput() {
$txt='';
$txt.="debug output:\n";
if(isset($_SERVER['REQUEST_METHOD'])) $txt.='http request method: '.$_SERVER['REQUEST_METHOD']."\n";
@ -165,7 +165,7 @@ class OC_OCS {
* @param bool $forceuser
* @return username string
*/
private static function checkp assword($forceuser=true) {
private static function checkP assword($forceuser=true) {
//valid user account ?
if(isset($_SERVER['PHP_AUTH_USER'])) $authuser=$_SERVER['PHP_AUTH_USER']; else $authuser='';
if(isset($_SERVER['PHP_AUTH_PW'])) $authpw=$_SERVER['PHP_AUTH_PW']; else $authpw='';
@ -210,7 +210,7 @@ class OC_OCS {
* @param int $itemsperpage
* @return string xml/json
*/
private static function generatex ml($format,$status,$statuscode,$message,$data=array(),$tag='',$tagattribute='',$dimension=-1,$itemscount='',$itemsperpage='') {
private static function generateX ml($format,$status,$statuscode,$message,$data=array(),$tag='',$tagattribute='',$dimension=-1,$itemscount='',$itemsperpage='') {
if($format=='json') {
$json=array();
@ -303,7 +303,7 @@ class OC_OCS {
}
}
public static function tox ml($writer,$data,$node) {
public static function toX ml($writer,$data,$node) {
foreach($data as $key => $value) {
if (is_numeric($key)) {
$key = $node;
@ -327,7 +327,7 @@ class OC_OCS {
* @param string $format
* @return string xml/json
*/
private static function apic onfig($format) {
private static function apiC onfig($format) {
$user=OC_OCS::checkpassword(false);
$url=substr($_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'],0,-11).'';
@ -347,7 +347,7 @@ class OC_OCS {
* @param string $passwd
* @return string xml/json
*/
private static function personc heck($format,$login,$passwd) {
private static function personC heck($format,$login,$passwd) {
if($login< >''){
if(OC_USER::login($login,$passwd)){
$xml['person']['personid']=$login;
@ -371,7 +371,7 @@ class OC_OCS {
* @param string $pagesize
* @return string xml/json
*/
private static function activityg et($format,$page,$pagesize) {
private static function activityG et($format,$page,$pagesize) {
global $CONFIG_DBTABLEPREFIX;
$user=OC_OCS::checkpassword();
@ -412,7 +412,7 @@ class OC_OCS {
* @param string $message
* @return string xml/json
*/
private static function activityp ut($format,$message) {
private static function activityP ut($format,$message) {
// not implemented in ownCloud
$user=OC_OCS::checkpassword();
echo(OC_OCS::generatexml($format,'ok',100,''));