[Phpmyadmin-devel] [Phpmyadmin-svn] SF.net SVN: phpmyadmin:[12782] branches/gsoc/derek/phpMyAdmin/libraries/ import

Michal Čihař michal at cihar.com
Thu Aug 13 00:42:00 CEST 2009


Hi

Dne Wed, 12 Aug 2009 22:34:25 +0000
drummingds1 at users.sourceforge.net napsal(a):

> Log Message:
> -----------
> Fixed include path problem for demo server. Import panel now displays as intended.
> 
[...]
> +$loc1 = getcwd() . '/libraries/PHPExcel/';
> +$loc2 = '../libraries/PHPExcel/';
> +
> +if (file_exists($loc1)) {
> +    $path = $loc1;
> +} else {
> +    $path = $loc2;
> +}
> +
>  /* Append the PHPExcel directory to the include path variable */
>  set_include_path(get_include_path() . PATH_SEPARATOR . getcwd() . '/libraries/PHPExcel/');

How is this supposed to work without using $path anywhere?

Also the cwd should always be top level phpMyAdmin directory (too many
things rely on this), when is it different?

-- 
	Michal Čihař | http://cihar.com | http://phpmyadmin.cz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20090813/3fdda59b/attachment.sig>


More information about the Developers mailing list