// +-----------------------------------------------------------------+ // | This program 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 any later version. | // | | // | This program 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. | // +-----------------------------------------------------------------+ // Path: /modules/phreeform/ajax/validate_db.php // /************** Check user security *****************************/ $xml = NULL; $security_level = validate_ajax_user(SECURITY_ID_PHREEFORM); /************** include page specific files *********************/ /************** page specific initialization *************************/ $runaway = 0; $tables = array(); $i = 2; $strTable .= DB_PREFIX . $_GET['table1']; $tables[] = $_GET['table1']; while (true) { if (!isset($_GET['table' . $i])) { break; } $joinopt = isset($_GET['joinopt' . $i]) ? $_GET['joinopt' . $i] : 'JOIN'; $strTable .= ' ' . $joinopt . ' ' . DB_PREFIX . $_GET['table' . $i] . ' on ' . $_GET['table' . $i . 'criteria']; $tables[] = $_GET['table' . $i]; $i++;
// | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program 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 any later version. | // | | // | This program 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. | // +-----------------------------------------------------------------+ // Path: /modules/work_orders/ajax/load_wo_detail.php // /************** Check user security *****************************/ $xml = NULL; $security_level = validate_ajax_user(); /************** page specific initialization *************************/ $id = $_GET['id']; if (!$id) { echo createXmlHeader() . xmlEntry('error', 'Error - Bad ID passed.') . createXmlFooter(); die; } $result = $db->Execute("select display_name, admin_email from " . TABLE_USERS . " where admin_id = " . $_SESSION['admin_id']); $xml = xmlEntry("id", $id); $xml .= xmlEntry("sEmail", $result->fields['admin_email']); $xml .= xmlEntry("sName", $result->fields['display_name']); $xml .= xmlEntry("rEmail", ''); $xml .= xmlEntry("rName", ''); echo createXmlHeader() . $xml . createXmlFooter(); die;
// +-----------------------------------------------------------------+ // | Copyright(c) 2008-2014 PhreeSoft (www.PhreeSoft.com) | // +-----------------------------------------------------------------+ // | This program 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 any later version. | // | | // | This program 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. | // +-----------------------------------------------------------------+ // Path: /modules/doc_ctl/ajax/doc_operation.php // $security_level = validate_ajax_user(SECURITY_ID_DOC_CONTROL); /************** include page specific files *********************/ require_once DIR_FS_MODULES . 'doc_ctl/defaults.php'; require_once DIR_FS_MODULES . 'doc_ctl/functions/doc_ctl.php'; /************** page specific initialization *************************/ $xml = NULL; $ajax_text = ''; $id = (int) $_GET['id']; if (!isset($_GET['id'])) { die; } $doc_details = $db->Execute("select * from " . TABLE_DC_DOCUMENT . " where id = " . $id); switch ($_REQUEST['action']) { case 'bookmark': $output = array(); $bookmarks = explode(":", $doc_details->fields['bookmarks']);