golden hour
/home/phakp/public_html/erp/core
⬆️ Go Up
Upload
File/Folder
Size
Actions
actions_addupdatedelete.inc.php
17.21 KB
Del
OK
actions_builddoc.inc.php
5.55 KB
Del
OK
actions_changeselectedfields.inc.php
1.57 KB
Del
OK
actions_comments.inc.php
2.55 KB
Del
OK
actions_dellink.inc.php
2.58 KB
Del
OK
actions_extrafields.inc.php
12.31 KB
Del
OK
actions_fetchobject.inc.php
1.87 KB
Del
OK
actions_lineupdown.inc.php
2.56 KB
Del
OK
actions_linkedfiles.inc.php
12.29 KB
Del
OK
actions_massactions.inc.php
59.67 KB
Del
OK
actions_printing.inc.php
3.29 KB
Del
OK
actions_sendmails.inc.php
18.35 KB
Del
OK
actions_setmoduleoptions.inc.php
5.35 KB
Del
OK
actions_setnotes.inc.php
3.63 KB
Del
OK
ajax
-
Del
OK
antispamimage.php
1.9 KB
Del
OK
bookmarks_page.php
6.11 KB
Del
OK
boxes
-
Del
OK
class
-
Del
OK
commonfieldsinexport.inc.php
2.01 KB
Del
OK
customreports.php
33.5 KB
Del
OK
data
-
Del
OK
datepicker.php
9.51 KB
Del
OK
db
-
Del
OK
doxygen.php
1.71 KB
Del
OK
extrafieldsinexport.inc.php
2.87 KB
Del
OK
filemanagerdol
-
Del
OK
get_info.php
8.05 KB
Del
OK
get_menudiv.php
7.67 KB
Del
OK
js
-
Del
OK
lib
-
Del
OK
login
-
Del
OK
menus
-
Del
OK
modules
-
Del
OK
multicompany_page.php
5.23 KB
Del
OK
photos_resize.php
22.83 KB
Del
OK
search.php
4.95 KB
Del
OK
search_page.php
4.93 KB
Del
OK
tools.php
1.56 KB
Del
OK
tpl
-
Del
OK
triggers
-
Del
OK
website.inc.php
5.11 KB
Del
OK
Edit: search.php
<?php /* Copyright (C) 2015 Laurent Destailleur <eldy@users.sourceforge.net> * * This file is a modified version of datepicker.php from phpBSM to fix some * bugs, to add new features and to dramatically increase speed. * * 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 * (at your option) 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. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * \file htdocs/core/search.php * \brief Wrapper that receive any search. Depending on input field, make a redirect to correct URL. */ if (!defined('NOREQUIREUSER')) { define('NOREQUIREUSER', '1'); } if (!defined('NOREQUIREDB')) { define('NOREQUIREDB', '1'); } if (!defined('NOREQUIRESOC')) { define('NOREQUIRESOC', '1'); } if (!defined('NOREQUIRETRAN')) { define('NOREQUIRETRAN', '1'); } if (!defined('NOCSRFCHECK')) { define('NOCSRFCHECK', 1); } if (!defined('NOTOKENRENEWAL')) { define('NOTOKENRENEWAL', 1); } if (!defined('NOLOGIN')) { define('NOLOGIN', 1); } if (!defined('NOREQUIREMENU')) { define('NOREQUIREMENU', 1); } require_once '../main.inc.php'; /* * Actions */ if (GETPOST('search_proposal') != '') { header("Location: ".DOL_URL_ROOT.'/comm/propal/list.php?sall='.urlencode(GETPOST('search_proposal'))); exit; } if (GETPOST('search_customer_order') != '') { header("Location: ".DOL_URL_ROOT.'/commande/list.php?sall='.urlencode(GETPOST('search_customer_order'))); exit; } if (GETPOST('search_supplier_order') != '') { header("Location: ".DOL_URL_ROOT.'/fourn/commande/list.php?search_all='.urlencode(GETPOST('search_supplier_order'))); exit; } if (GETPOST('search_intervention') != '') { header("Location: ".DOL_URL_ROOT.'/fichinter/list.php?sall='.urlencode(GETPOST('search_intervention'))); exit; } if (GETPOST('search_contract') != '') { header("Location: ".DOL_URL_ROOT.'/contrat/list.php?sall='.urlencode(GETPOST('search_contract'))); exit; } if (GETPOST('search_invoice') != '') { header("Location: ".DOL_URL_ROOT.'/compta/facture/list.php?sall='.urlencode(GETPOST('search_invoice'))); exit; } if (GETPOST('search_supplier_invoice') != '') { header("Location: ".DOL_URL_ROOT.'/fourn/facture/list.php?sall='.urlencode(GETPOST('search_supplier_invoice'))); exit; } if (GETPOST('search_supplier_proposal') != '') { header("Location: ".DOL_URL_ROOT.'/supplier_proposal/list.php?sall='.urlencode(GETPOST('search_supplier_proposal'))); exit; } if (GETPOST('search_donation') != '') { header("Location: ".DOL_URL_ROOT.'/don/list.php?sall='.urlencode(GETPOST('search_donation'))); exit; } if (GETPOST('search_product') != '') { header("Location: ".DOL_URL_ROOT.'/product/list.php?sall='.urlencode(GETPOST('search_product'))); exit; } if (GETPOST('search_thirdparty') != '') { header("Location: ".DOL_URL_ROOT.'/societe/list.php?mode=search&sall='.urlencode(GETPOST('search_thirdparty'))); exit; } if (GETPOST('search_contact') != '') { header("Location: ".DOL_URL_ROOT.'/contact/list.php?mode=search&sall='.urlencode(GETPOST('search_contact'))); exit; } if (GETPOST('search_deplacement') != '') { header("Location: ".DOL_URL_ROOT.'/compta/deplacement/list.php?mode=search&sall='.urlencode(GETPOST('search_deplacement'))); exit; } if (GETPOST('search_expensereport') != '') { header("Location: ".DOL_URL_ROOT.'/expensereport/list.php?mode=search&sall='.urlencode(GETPOST('search_expensereport'))); exit; } if (GETPOST('search_holiday') != '') { header("Location: ".DOL_URL_ROOT.'/holiday/list.php?mode=search&sall='.urlencode(GETPOST('search_holiday'))); exit; } if (GETPOST('search_member') != '') { header("Location: ".DOL_URL_ROOT.'/adherents/list.php?mode=search&sall='.urlencode(GETPOST('search_member'))); exit; } if (GETPOST('search_project') != '') { header("Location: ".DOL_URL_ROOT.'/projet/list.php?mode=search&search_all='.urlencode(GETPOST('search_project'))); exit; } if (GETPOST('search_task') != '') { header("Location: ".DOL_URL_ROOT.'/projet/tasks/list.php?mode=search&search_all='.urlencode(GETPOST('search_task'))); exit; } if (GETPOST('search_user') != '') { header("Location: ".DOL_URL_ROOT.'/user/list.php?mode=search&sall='.urlencode(GETPOST('search_user'))); exit; } if (GETPOST('search_group') != '') { header("Location: ".DOL_URL_ROOT.'/user/group/list.php?mode=search&sall='.urlencode(GETPOST('search_group'))); exit; } // If we are here, search was called with no supported criteria if (!empty($_SERVER['HTTP_REFERER'])) { header("Location: ".$_SERVER['HTTP_REFERER']); exit; } else { print 'The wrapper search.php was called without any search criteria'; }
Save