Ignore:
Timestamp:
Feb 23, 2007, 2:18:34 PM (17 years ago)
Author:
rvelices
Message:

Plugins:

  • display author and and author url (if present) on plugin admin page
  • uniformized versions/authors... for all plugins in svn
  • security fix (html escape name, version, uri, author... to avoid javascript injection which could automatically simulate click on Install)
  • added confirmation for install/uninstall plugins

Web services:

  • web service explorer now caches method details in order to avoid unnecessary web calls
  • web service explorer can now send parameters as arrays
  • web service explorer uses now prototype.js version 1.5
  • small improvements
  • added and use function bad_request (sends http status code 400)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions_html.inc.php

    r1851 r1852  
    628628
    629629/**
     630 * exits the current script with 400 code
     631 * @param string msg a message to display
     632 * @param string alternate_url redirect to this url
     633 */
     634function bad_request($msg, $alternate_url=null)
     635{
     636  set_status_header(400);
     637  if ($alternate_url==null)
     638    $alternate_url = make_index_url();
     639  redirect_html( $alternate_url,
     640    '<div style="text-align:left; margin-left:5em;margin-bottom:5em;">
     641<h1 style="text-align:left; font-size:36px;">Bad request</h1><br/>'
     642.$msg.'</div>',
     643    5 );
     644}
     645
     646/**
    630647 * exits the current script with 404 code when a page cannot be found
    631648 * @param string msg a message to display
Note: See TracChangeset for help on using the changeset viewer.