Upload docs draft

This commit is contained in:
2019-09-07 21:09:13 +02:00
parent 32d4917964
commit 35efcf2293
17 changed files with 1725 additions and 70 deletions

View File

@@ -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);