2009-01-01 00:23:29 +00:00
< ? php defined ( " SYSPATH " ) or die ( " No direct script access. " ) ?>
2008-12-30 04:14:57 +00:00
< div id = " gGraphics " >
2009-01-08 17:13:06 +00:00
< h1 > < ? = t ( " Graphics Settings " ) ?> </h1>
2008-12-30 04:14:57 +00:00
< p >
2009-01-08 17:13:06 +00:00
< ? = t ( " Gallery needs a graphics toolkit in order to manipulate your photos. Please choose one from the list below. " ) ?>
2008-12-30 04:14:57 +00:00
</ p >
< form method = " post " action = " <?= url::site( " admin / graphics / save " ) ?> " >
< ? = access :: csrf_form_field () ?>
2009-01-08 17:13:06 +00:00
< h2 > < ? = t ( " Graphics Toolkits " ) ?> </h2>
2008-12-30 04:14:57 +00:00
< table >
< tr >
< td valign = " top " style = " width: 100px " >
< center >
< input type = " radio " name = " graphics_toolkit " value = " gd "
< ? if ( ! $tk -> gd ) : ?> disabled="disabled" <? endif ?>
< ? if ( $active == " gd " ) : ?> checked="checked" <? endif ?>
>
</ center >
</ td >
< td >
2009-01-08 17:13:06 +00:00
< h3 > < ? = t ( " GD " ) ?> </h3>
2008-12-30 04:14:57 +00:00
< p >
2009-01-08 17:13:06 +00:00
< ? = t ( " The GD graphics library is an extension to PHP commonly installed most webservers. Please refer to the { { link_start}}GD website { { link_end}} for more information. " ,
array ( " link_start " => " <a href= \" http://www.boutell.com/gd/ \" > " , " link_end " => " </a> " )) ?>
2008-12-30 04:14:57 +00:00
</ p >
2009-01-03 05:26:47 +00:00
< ? if ( $tk -> gd [ " GD Version " ] && function_exists ( 'imagerotate' )) : ?>
2008-12-30 04:14:57 +00:00
< p class = " gSuccess " >
2009-01-08 17:13:06 +00:00
< ? = t ( " You have GD version { { version}}. " , array ( " version " => $tk -> gd [ " GD Version " ])) ?>
2009-01-03 05:26:47 +00:00
</ p >
< ? elseif ( $tk -> gd [ " GD Version " ]) : ?>
< p class = " gWarning " >
2009-01-08 17:13:06 +00:00
< ? = t ( " You have GD version { { version}}, but it lacks image rotation. " ,
array ( " version " => $tk -> gd [ " GD Version " ])) ?>
2008-12-30 04:14:57 +00:00
</ p >
< ? else : ?>
< p class = " gInfo " >
2009-01-08 17:13:06 +00:00
< ? = t ( " You do not have GD installed. " ) ?>
2008-12-30 04:14:57 +00:00
</ p >
< ? endif ?>
</ td >
</ tr >
< tr >
< td valign = " top " style = " width: 100px " >
< center >
< input type = " radio " name = " graphics_toolkit " value = " imagemagick "
< ? if ( ! $tk -> imagemagick ) : ?> disabled="disabled" <? endif ?>
< ? if ( $active == " imagemagick " ) : ?> checked="checked" <? endif ?>
>
</ center >
</ td >
< td >
2009-01-08 17:13:06 +00:00
< h3 > < ? = t ( " ImageMagick " ) ?> </h3>
2008-12-30 04:14:57 +00:00
< p >
2009-01-08 17:13:06 +00:00
< ? = t ( " ImageMagick is a standalone graphics program available on most Linux systems. Please refer to the { { link_start}}ImageMagick website { { link_end}} for more information. " ,
array ( " link_start " => " <a href= \" http://www.imagemagick.org/ \" > " , " link_end " => " </a> " )) ?>
2008-12-30 04:14:57 +00:00
</ p >
< ? if ( $tk -> imagemagick ) : ?>
< p class = " gSuccess " >
2009-01-08 17:13:06 +00:00
< ? = t ( " You have ImageMagick installed in { { path}} " , array ( " path " => $tk -> imagemagick )) ?>
2008-12-30 04:14:57 +00:00
</ p >
< ? else : ?>
< p class = " gInfo " >
2009-01-08 17:13:06 +00:00
< ? = t ( " ImageMagick is not available on your system. " ) ?>
2008-12-30 04:14:57 +00:00
</ p >
< ? endif ?>
</ td >
</ tr >
< tr >
< td valign = " top " style = " width: 100px " >
< center >
< input type = " radio " name = " graphics_toolkit " value = " graphicsmagick "
< ? if ( ! $tk -> graphicsmagick ) : ?> disabled="disabled" <? endif ?>
< ? if ( $active == " graphicsmagick " ) : ?> checked="checked" <? endif ?>
>
</ center >
</ td >
< td >
2009-01-08 17:13:06 +00:00
< h3 > < ? = t ( " GraphicsMagick " ) ?> </h3>
2008-12-30 04:14:57 +00:00
< p >
2009-01-08 17:13:06 +00:00
< ? = t ( " GraphicsMagick is a standalone graphics program available on most Linux systems. Please refer to the { { link_start}}GraphicsMagick website { { link_end}} for more information. " ,
array ( " link_start " => " <a href= \" http://www.graphicsmagick.org/ \" > " , " link_end " => " </a> " )) ?>
2008-12-30 04:14:57 +00:00
</ p >
< ? if ( $tk -> graphicsmagick ) : ?>
< p class = " gSuccess " >
2009-01-08 17:13:06 +00:00
< ? = t ( " You have GraphicsMagick installed in { { path}} " , array ( " path " => $tk -> graphicsmagick )) ?>
2008-12-30 04:14:57 +00:00
</ p >
< ? else : ?>
< p class = " gInfo " >
2009-01-08 17:13:06 +00:00
< ? = t ( " GraphicsMagick is not available on your system. " ) ?>
2008-12-30 04:14:57 +00:00
</ p >
< ? endif ?>
</ td >
</ tr >
</ table >
2009-01-08 17:13:06 +00:00
< input type = " submit " value = " <?= t( " Save " ) ?> " />
2008-12-30 04:14:57 +00:00
</ form >
</ div >