File tree Expand file tree Collapse file tree 5 files changed +4
-13
lines changed
Expand file tree Collapse file tree 5 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 1313| Supports: http://www.slightphp.com |
1414+-----------------------------------------------------------------------+
1515}}}*/
16+ /**
17+ * @package SlightPHP
18+ */
1619class SConfig{
1720 public static $ CACHE =true ;
1821 /**
Original file line number Diff line number Diff line change 1616
1717/**
1818 * @package SlightPHP
19- * SRedis is base on php5-redis(phpredis https://github.com/phpredis/phpredis)
20- * use RedisArray , docs is on https://github.com/phpredis/phpredis/blob/master/arrays.markdown#readme
2119 */
2220if (!defined ("SLIGHTPHP_PLUGINS_DIR " ))define ("SLIGHTPHP_PLUGINS_DIR " ,dirname (__FILE__ ));
2321require_once (SLIGHTPHP_PLUGINS_DIR ."/SConfig.php " );
Original file line number Diff line number Diff line change 1515}}}*/
1616
1717/**
18- * @deprecated
19- * recommend https://github.com/Intervention/image
18+ * @package SlightPHP
2019 */
2120
22-
2321require_once (dirname (__FILE__ ).DIRECTORY_SEPARATOR ."thumbnail/class.WMThumbnail.inc.php " );
24- /**
25- * @package SlightPHP
26- */
2722if (!function_exists ('imageflip ' )) {
2823 define ('IMG_FLIP_HORIZONTAL ' , 0 );
2924 define ('IMG_FLIP_VERTICAL ' , 1 );
Original file line number Diff line number Diff line change @@ -85,8 +85,6 @@ function get($key){
8585 flock ($ fp ,LOCK_UN );
8686 fclose ($ fp );
8787 return unserialize ($ data );
88- }else {
89- //过期了,应该删除这个文件,但为了性能考虑,不删除
9088 }
9189 }
9290 flock ($ fp ,LOCK_UN );
Original file line number Diff line number Diff line change 11<?php
22/**
3- * Script para la generación de CAPTCHAS
4- *
53 * @author Jose Rodriguez <jose.rodriguez@exec.cl>
64 * @license GPLv3
75 * @link http://code.google.com/p/cool-php-captcha
@@ -401,7 +399,6 @@ protected function WaveImage() {
401399 * Reduce the image to the final size
402400 */
403401 protected function ReduceImage () {
404- // Reduzco el tamaño de la imagen
405402 $ imResampled = imagecreatetruecolor ($ this ->width , $ this ->height );
406403 imagecopyresampled ($ imResampled , $ this ->im ,
407404 0 , 0 , 0 , 0 ,
You can’t perform that action at this time.
0 commit comments