-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathenvio.php
More file actions
38 lines (26 loc) · 815 Bytes
/
envio.php
File metadata and controls
38 lines (26 loc) · 815 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
require_once('../../config.php');
require_once('locallib.php');
require_once('formEnvia.php');
global $DB,$PAGE;
require_login();
$PAGE->set_context(context_system::instance());
if(!is_siteadmin()){
redirect($CFG->wwwroot,'Acesso não autorizado');
}
$id = optional_param('id', 0, PARAM_INT);
$edit = optional_param('edit', 0, PARAM_INT);
$delete = optional_param('delete', 0, PARAM_INT);
$PAGE->set_url('/local/custonsmtp/accounts.php');
$PAGE->set_pagelayout('admin');
$PAGE->set_title('Gerenciamento de Contas');
$PAGE->set_heading('Gerenciamento de Contas');
echo $OUTPUT->header();
$context = context_system::instance();
$mform = new formEnvia(null,array('id'=>$id));
$mform->display();
if (count($_POST)>0) {
$data = (object)$_POST;
EnviaEmails($data);
}
echo $OUTPUT->footer();