Upload docs draft
This commit is contained in:
@@ -57,6 +57,12 @@ elseif($sAction!='' && $bLoggedIn)
|
||||
case 'set_note':
|
||||
$sResult = $oCATC->setNote($iId, $sContent);
|
||||
break;
|
||||
case 'upload_doc':
|
||||
$sResult = $oCATC->uploadDoc($iId);
|
||||
break;
|
||||
case 'get_docs':
|
||||
$sResult = $oCATC->getDocs($iId);
|
||||
break;
|
||||
default:
|
||||
$sResult = CATC::getJsonResult(false, CATC::NOT_FOUND);
|
||||
}
|
||||
@@ -74,7 +80,7 @@ elseif($sAction!='' && !$bLoggedIn)
|
||||
elseif($sAction=='register') $sResult = $oCATC->register($sToken, $sNickName);
|
||||
else $sResult = CATC::getJsonResult(false, CATC::UNAUTHORIZED);
|
||||
}
|
||||
else $sResult = $oCATC->getPage();
|
||||
else $sResult = $oCATC->getAppMainPage();
|
||||
|
||||
$sDebug = ob_get_clean();
|
||||
if(Settings::DEBUG && $sDebug!='') $oCATC->addUncaughtError($sDebug);
|
||||
|
||||
Reference in New Issue
Block a user