[Phpmyadmin-devel] suggestion for reloading of left.php

Ignacio Vazquez-Abrams ignacio at openservices.net
Tue Aug 14 22:44:49 CEST 2001


On Tue, 14 Aug 2001, Robin Johnson wrote:

> On Tue, 14 Aug 2001, Dan Allen wrote:
> > Anyway, long story short, we should run ereg on
> > the query and search for CREATE or DROP at the
> > beginning
> >
> > ereg("^CREATE|^DROP",$query)
> Actually, if the user feeds a long set of queries in, it could be
> anywhere in the list.
> so
> ereg("CREATE TABLE|CREATE DATABASE|DROP TABLE|DROP DATABASE",$query);
>
> > and then reload the left.php if either of those
> > are found.
> Anybody got some suggestions on how to do this?

File 1:
-------

$refreshnav=ereg(...);

header("Location: ...&r=$refreshnav");


File 2:
-------

<body ... <?php if ($HTTP_GET_VARS['r']) { ?> onLoad="top.nav.location.refresh(true)"<?php }; ?>>

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Developers mailing list