Source for file jOCSP_functions.php

Documentation is available at jOCSP_functions.php

  1. <?php
  2. /**
  3.   * Common Functions to interact with jOCSP javascript
  4.   *
  5.   * @project    Open CSP-Management
  6.   * @package    jOCSP
  7.   *
  8.   * @author     Peter Krebs (pk) <pitlinz@users.sourceforge.net>
  9.   * @license    http://opensource.org/licenses/gpl-license.php GNU Public License
  10.   *
  11.   * @version pk-08-02-07
  12.   *
  13.   ***/
  14.  
  15. /**
  16.  * returns the js command to register an error
  17.  *
  18.  * @param string $str_msg 
  19.  * @param boolean $silient 
  20.  * @param string $str_debugInfo 
  21.  *   */
  22. function jOCSP_registerError($str_msg,$silient=TRUE,$str_debugInfo=NULL)
  23. {
  24.     $str_ret  ="jOCSP.addError({";
  25.     $str_ret .= "msg: '" pcf_js_escape($str_msg."'";
  26.     $str_ret .= ",debugInfo: '" pcf_js_escape($str_msg"'";
  27.     $str_ret .= ",reqURI: '" pcf_js_escape($_SERVER['REQUEST_URI']."'"
  28.     $str_ret .="});";
  29.     
  30.     if (!$silent)
  31.     {
  32.         $str_ret .= "alert('Fehler: " pcf_js_escape($str_msg."');";
  33.     }
  34. }
  35. ?>

Documentation generated on Thu, 08 Jan 2009 17:44:30 +0100 by phpDocumentor 1.4.0a2