You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.php 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /* <one line to give the program's name and a brief idea of what it does.>
  3. * Copyright (C) <year> <name of author>
  4. *
  5. * This program is free software: you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License as published by
  7. * the Free Software Foundation, either version 3 of the License, or
  8. * (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. $res=0;
  19. if (! $res && file_exists("../main.inc.php")) $res=@include '../main.inc.php';
  20. if (! $res && file_exists("../../main.inc.php")) $res=@include '../../main.inc.php';
  21. if (! $res && file_exists("../../../main.inc.php")) $res=@include '../../../main.inc.php';
  22. if (! $res && file_exists("../../../dolibarr/htdocs/main.inc.php")) $res=@include '../../../dolibarr/htdocs/main.inc.php'; // Used on dev env only
  23. if (! $res && file_exists("../../../../dolibarr/htdocs/main.inc.php")) $res=@include '../../../../dolibarr/htdocs/main.inc.php'; // Used on dev env only
  24. if (! $res && file_exists("../../../../../dolibarr/htdocs/main.inc.php")) $res=@include '../../../../../dolibarr/htdocs/main.inc.php'; // Used on dev env only
  25. if (! $res) die("Include of main fails");
  26. // Change this following line to use the correct relative path from htdocs
  27. dol_include_once('/module/class/phcp.class.php');
  28. // Load traductions files requiredby by page
  29. $langs->load("companies");
  30. $langs->load("other");
  31. // Get parameters
  32. $id = GETPOST('id','int');
  33. $action = GETPOST('action','alpha');
  34. $myparam = GETPOST('myparam','alpha');
  35. // Protection if external user
  36. if ($user->societe_id > 0)
  37. {
  38. //accessforbidden();
  39. }
  40. llxHeader('','Liste des Photocopieurs','');
  41. // End of page
  42. llxFooter();
  43. $db->close();
  44. ?>