PageRenderTime 81ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/Calendar/disable_sharing.php

https://bitbucket.org/yousef_fadila/vtiger
PHP | 22 lines | 13 code | 0 blank | 9 comment | 0 complexity | 33627ca6cb977d05cb8729e0bfe6e8f6 MD5 | raw file
Possible License(s): LGPL-2.1, GPL-2.0
  1. <?php
  2. /*+********************************************************************************
  3. * The contents of this file are subject to the vtiger CRM Public License Version 1.0
  4. * ("License"); You may not use this file except in compliance with the License
  5. * The Original Code is: vtiger CRM Open Source
  6. * The Initial Developer of the Original Code is vtiger.
  7. * Portions created by vtiger are Copyright (C) vtiger.
  8. * All Rights Reserved.
  9. ********************************************************************************/
  10. require_once('include/database/PearDatabase.php');
  11. $idlist = vtlib_purify($_POST['idlist']);
  12. $returnmodule=vtlib_purify($_REQUEST['return_module']);
  13. $returnaction=vtlib_purify($_REQUEST['return_action']);
  14. //split the string and store in an array
  15. $storearray = explode(";",$idlist);
  16. foreach($storearray as $id)
  17. {
  18. $sql="delete from vtiger_sharedcalendar where sharedid=?";
  19. $result = $adb->pquery($sql, array($id));
  20. }
  21. header("Location:index.php?module=".$returnmodule."&action=".$returnaction);
  22. ?>