/**
     * @NoAdminRequired
     * @CORS
     * @NoCSRFRequired
     */
    public function save() {
	require_once 'ownnote/lib/backend.php';
	if (isset($_GET["note"]) && isset($_GET["content"]))
		return saveNote("Notes", $_GET["note"], $_GET["content"]);
	if (isset($_POST["note"]) && isset($_POST["content"]))
		return saveNote("Notes", $_POST["note"], $_POST["content"]);
    }
示例#2
0
        TOOLBAR_spidercalendar::_DEFAULT_plugin();
        break;
    default:
        TOOLBAR_spidercalendar::_DEFAULT_calendar();
        break;
}
switch ($task) {
    case 'add_event':
        addNote();
        break;
    case 'cancel_event':
        cancelNote();
        break;
    case 'apply_event':
    case 'save_event':
        saveNote();
        break;
    case 'edit_event':
        editNote();
        break;
    case 'event':
        showNote(JRequest::getVar('calendar', 0, '', 'int'));
        break;
    case 'event_save_show':
        showNote(save_before_show());
        break;
    case 'module_event':
        module_event();
        break;
        // This will work when you set task to 'remove
    // This will work when you set task to 'remove
 public function f_note($params)
 {
     $res = saveNote($params["id"], $params["note"], $params["comment_viewer"], isset($params["relation_name"]) ? $params["relation_name"] : "person");
     if (isset($params["followup_count_no"])) {
         $gp_id = _churchdb_getGemeindepersonIdFromPersonId($params["id"]);
         db_query("UPDATE {cdb_gemeindeperson_gruppe}\n                SET followup_count_no=:followup_count, followup_add_diff_days=:followup_diff\n                WHERE gemeindeperson_id=:gp_id AND gruppe_id=:followup_gid", array(':followup_count' => $params["followup_count_no"], ':followup_diff' => $params["followup_add_diff_days"], ':gp_id' => $gp_id, ':followup_gid' => $params["followup_gid"]));
     }
     $this->logPerson($params, 2);
     return $res;
 }
 public function f_note($params)
 {
     $res = saveNote($params["id"], $params["note"], $params["comment_viewer"], isset($params["relation_name"]) ? $params["relation_name"] : "person");
     if (isset($params["followup_count_no"])) {
         $gp_id = _churchdb_getGemeindepersonIdFromPersonId($params["id"]);
         db_query("UPDATE {cdb_gemeindeperson_gruppe} SET followup_count_no=" . $params["followup_count_no"] . ", followup_add_diff_days=" . $params["followup_add_diff_days"] . " WHERE gemeindeperson_id=" . $gp_id . " AND gruppe_id=" . $params["followup_gid"]);
     }
     $this->logPerson($params, 2);
     return $res;
 }
示例#5
0
<?php

\OCP\User::checkLoggedIn();
\OCP\App::checkAppEnabled('ownnote');

require_once 'ownnote/lib/backend.php';

echo saveNote("Notes", $_POST['editfilename'], $_POST['content']);

?>