���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home3/cpr76684/public_html/services.php.tar
���ѧ٧ѧ�
home3/cpr76684/public_html/Aem/auth/email/db/services.php 0000644 00000003054 15151776563 0016761 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Auth email webservice definitions. * * @package auth_email * @copyright 2016 Juan Leyva * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); $functions = array( 'auth_email_get_signup_settings' => array( 'classname' => 'auth_email_external', 'methodname' => 'get_signup_settings', 'description' => 'Get the signup required settings and profile fields.', 'type' => 'read', 'ajax' => true, 'loginrequired' => false, ), 'auth_email_signup_user' => array( 'classname' => 'auth_email_external', 'methodname' => 'signup_user', 'description' => 'Adds a new user (pendingto be confirmed) in the site.', 'type' => 'write', 'ajax' => true, 'loginrequired' => false, ), ); home3/cpr76684/public_html/Aem/mod/quiz/db/services.php 0000644 00000020533 15152172150 0016460 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * Quiz external functions and service definitions. * * @package mod_quiz * @category external * @copyright 2016 Juan Leyva <juan@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later * @since Moodle 3.1 */ defined('MOODLE_INTERNAL') || die; $functions = array( 'mod_quiz_get_quizzes_by_courses' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_quizzes_by_courses', 'description' => 'Returns a list of quizzes in a provided list of courses, if no list is provided all quizzes that the user can view will be returned.', 'type' => 'read', 'capabilities' => 'mod/quiz:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_view_quiz' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'view_quiz', 'description' => 'Trigger the course module viewed event and update the module completion status.', 'type' => 'write', 'capabilities' => 'mod/quiz:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_user_attempts' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_user_attempts', 'description' => 'Return a list of attempts for the given quiz and user.', 'type' => 'read', 'capabilities' => 'mod/quiz:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_user_best_grade' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_user_best_grade', 'description' => 'Get the best current grade for the given user on a quiz.', 'type' => 'read', 'capabilities' => 'mod/quiz:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_combined_review_options' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_combined_review_options', 'description' => 'Combines the review options from a number of different quiz attempts.', 'type' => 'read', 'capabilities' => 'mod/quiz:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_start_attempt' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'start_attempt', 'description' => 'Starts a new attempt at a quiz.', 'type' => 'write', 'capabilities' => 'mod/quiz:attempt', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_attempt_data' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_attempt_data', 'description' => 'Returns information for the given attempt page for a quiz attempt in progress.', 'type' => 'read', 'capabilities' => 'mod/quiz:attempt', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_attempt_summary' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_attempt_summary', 'description' => 'Returns a summary of a quiz attempt before it is submitted.', 'type' => 'read', 'capabilities' => 'mod/quiz:attempt', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_save_attempt' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'save_attempt', 'description' => 'Processes save requests during the quiz. This function is intended for the quiz auto-save feature.', 'type' => 'write', 'capabilities' => 'mod/quiz:attempt', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_process_attempt' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'process_attempt', 'description' => 'Process responses during an attempt at a quiz and also deals with attempts finishing.', 'type' => 'write', 'capabilities' => 'mod/quiz:attempt', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_attempt_review' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_attempt_review', 'description' => 'Returns review information for the given finished attempt, can be used by users or teachers.', 'type' => 'read', 'capabilities' => 'mod/quiz:reviewmyattempts', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_view_attempt' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'view_attempt', 'description' => 'Trigger the attempt viewed event.', 'type' => 'write', 'capabilities' => 'mod/quiz:attempt', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_view_attempt_summary' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'view_attempt_summary', 'description' => 'Trigger the attempt summary viewed event.', 'type' => 'write', 'capabilities' => 'mod/quiz:attempt', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_view_attempt_review' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'view_attempt_review', 'description' => 'Trigger the attempt reviewed event.', 'type' => 'write', 'capabilities' => 'mod/quiz:reviewmyattempts', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_quiz_feedback_for_grade' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_quiz_feedback_for_grade', 'description' => 'Get the feedback text that should be show to a student who got the given grade in the given quiz.', 'type' => 'read', 'capabilities' => 'mod/quiz:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_quiz_access_information' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_quiz_access_information', 'description' => 'Return access information for a given quiz.', 'type' => 'read', 'capabilities' => 'mod/quiz:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_attempt_access_information' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_attempt_access_information', 'description' => 'Return access information for a given attempt in a quiz.', 'type' => 'read', 'capabilities' => 'mod/quiz:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_get_quiz_required_qtypes' => array( 'classname' => 'mod_quiz_external', 'methodname' => 'get_quiz_required_qtypes', 'description' => 'Return the potential question types that would be required for a given quiz.', 'type' => 'read', 'capabilities' => 'mod/quiz:view', 'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE) ), 'mod_quiz_set_question_version' => [ 'classname' => 'mod_quiz\external\submit_question_version', 'description' => 'Set the version of question that would be required for a given quiz.', 'type' => 'write', 'capabilities' => 'mod/quiz:view', 'ajax' => true, ], ); home3/cpr76684/public_html/Aem/admin/mnet/services.php 0000644 00000006506 15152600260 0016361 0 ustar 00 <?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // Moodle is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with Moodle. If not, see <http://www.gnu.org/licenses/>. /** * This page is for configuring which services are published/subscribed on a host * * @package core * @subpackage mnet * @copyright 2010 Penny Leach * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require(__DIR__.'/../../config.php'); require_once($CFG->libdir.'/adminlib.php'); require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/services_form.php'); $mnet = get_mnet_environment(); admin_externalpage_setup('mnetpeers'); $hostid = required_param('hostid', PARAM_INT); $mnet_peer = new mnet_peer(); $mnet_peer->set_id($hostid); $mform = new mnet_services_form(null, array('peer' => $mnet_peer)); if ($formdata = $mform->get_data()) { if (!isset($formdata->publish)) { $formdata->publish = array(); } if (!isset($formdata->subscribe)) { $formdata->subscribe = array(); } foreach($formdata->exists as $key => $value) { $host2service = $DB->get_record('mnet_host2service', array('hostid'=>$hostid, 'serviceid'=>$key)); $publish = (array_key_exists($key, $formdata->publish)) ? $formdata->publish[$key] : 0; $subscribe = (array_key_exists($key, $formdata->subscribe)) ? $formdata->subscribe[$key] : 0; if ($publish != 1 && $subscribe != 1) { if (false == $host2service) { // We don't have or need a record - do nothing! } else { // We don't need the record - delete it $DB->delete_records('mnet_host2service', array('hostid' => $hostid, 'serviceid'=>$key)); } } elseif (false == $host2service && ($publish == 1 || $subscribe == 1)) { $host2service = new stdClass(); $host2service->hostid = $hostid; $host2service->serviceid = $key; $host2service->publish = $publish; $host2service->subscribe = $subscribe; $host2service->id = $DB->insert_record('mnet_host2service', $host2service); } elseif ($host2service->publish != $publish || $host2service->subscribe != $subscribe) { $host2service->publish = $publish; $host2service->subscribe = $subscribe; $DB->update_record('mnet_host2service', $host2service); } } $redirecturl = new moodle_url('/admin/mnet/services.php?hostid=' . $hostid); redirect($redirecturl, get_string('changessaved')); } echo $OUTPUT->header(); $currenttab = 'mnetservices'; require_once($CFG->dirroot . '/' . $CFG->admin . '/mnet/tabs.php'); echo $OUTPUT->box_start(); $s = mnet_get_service_info($mnet_peer, false); // basic data only $mform->set_data($s); $mform->display(); echo $OUTPUT->box_end(); echo $OUTPUT->footer();
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�