Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
cesa.co.za /
includes /
Delete
Unzip
Name
Size
Permission
Date
Action
actions.inc
14.34
KB
-rw-r--r--
2014-12-11 05:44
batch.inc
11.21
KB
-rw-r--r--
2014-12-11 05:44
bootstrap.inc
45.69
KB
-rw-r--r--
2014-12-11 05:44
cache-install.inc
700
B
-rw-r--r--
2014-12-11 05:44
cache.inc
7.04
KB
-rw-r--r--
2014-12-11 05:44
common.inc
130.73
KB
-rw-r--r--
2014-12-11 05:44
database.inc
21.35
KB
-rw-r--r--
2014-12-11 05:44
database.mysql-common.inc
15.17
KB
-rw-r--r--
2014-12-11 05:44
database.mysql.inc
10.81
KB
-rw-r--r--
2014-12-11 05:44
database.mysqli.inc
10.97
KB
-rw-r--r--
2014-12-11 05:44
database.pgsql.inc
26.56
KB
-rw-r--r--
2014-12-11 05:44
file.inc
56.49
KB
-rw-r--r--
2019-10-08 10:17
form.inc
94.98
KB
-rw-r--r--
2019-10-08 10:26
image.gd.inc
6.13
KB
-rw-r--r--
2014-12-11 05:44
image.inc
8.35
KB
-rw-r--r--
2014-12-11 05:44
install.inc
22
KB
-rw-r--r--
2014-12-11 05:44
install.mysql.inc
4.91
KB
-rw-r--r--
2014-12-11 05:44
install.mysqli.inc
5.03
KB
-rw-r--r--
2014-12-11 05:44
install.pgsql.inc
5.51
KB
-rw-r--r--
2014-12-11 05:44
language.inc
4.35
KB
-rw-r--r--
2014-12-11 05:44
locale.inc
95.76
KB
-rw-r--r--
2014-12-11 05:44
lock-install.inc
1.23
KB
-rw-r--r--
2014-12-11 05:44
lock.inc
7.72
KB
-rw-r--r--
2014-12-11 05:44
mail.inc
17.56
KB
-rw-r--r--
2014-12-11 05:44
menu.inc
87.69
KB
-rw-r--r--
2014-12-11 05:44
module.inc
16.83
KB
-rw-r--r--
2014-12-11 05:44
pager.inc
14.45
KB
-rw-r--r--
2014-12-11 05:44
path.inc
7.9
KB
-rw-r--r--
2014-12-11 05:44
session.inc
7.45
KB
-rw-r--r--
2014-12-11 05:44
tablesort.inc
6
KB
-rw-r--r--
2014-12-11 05:44
theme.inc
69.52
KB
-rw-r--r--
2014-12-11 05:44
theme.maintenance.inc
11.16
KB
-rw-r--r--
2014-12-11 05:44
unicode.entities.inc
5.36
KB
-rw-r--r--
2014-12-11 05:44
unicode.inc
17.23
KB
-rw-r--r--
2019-10-08 10:17
xmlrpc.inc
15.37
KB
-rw-r--r--
2014-12-11 05:44
xmlrpcs.inc
9.22
KB
-rw-r--r--
2014-12-11 05:44
Save
Rename
<?php /** * @file * GD2 toolkit for image manipulation within Drupal. */ /** * @ingroup image * @{ */ /** * Retrieve information about the toolkit. */ function image_gd_info() { return array('name' => 'gd', 'title' => t('GD2 image manipulation toolkit')); } /** * Retrieve settings for the GD2 toolkit. */ function image_gd_settings() { if (image_gd_check_settings()) { $form = array(); $form['status'] = array( '#value' => t('The GD toolkit is installed and working properly.') ); $form['image_jpeg_quality'] = array( '#type' => 'textfield', '#title' => t('JPEG quality'), '#description' => t('Define the image quality for JPEG manipulations. Ranges from 0 to 100. Higher values mean better image quality but bigger files.'), '#size' => 10, '#maxlength' => 3, '#default_value' => variable_get('image_jpeg_quality', 75), '#field_suffix' => t('%'), ); $form['#element_validate'] = array('image_gd_settings_validate'); return $form; } else { form_set_error('image_toolkit', t('The GD image toolkit requires that the GD module for PHP be installed and configured properly. For more information see <a href="@url">PHP\'s image documentation</a>.', array('@url' => 'http://php.net/image'))); return FALSE; } } /** * Validate the submitted GD settings. */ function image_gd_settings_validate($form, &$form_state) { // Validate image quality range. $value = $form_state['values']['image_jpeg_quality']; if (!is_numeric($value) || $value < 0 || $value > 100) { form_set_error('image_jpeg_quality', t('JPEG quality must be a number between 0 and 100.')); } } /** * Verify GD2 settings (that the right version is actually installed). * * @return * A boolean indicating if the GD toolkit is avaiable on this machine. */ function image_gd_check_settings() { if ($check = get_extension_funcs('gd')) { if (in_array('imagegd2', $check)) { // GD2 support is available. return TRUE; } } return FALSE; } /** * Scale an image to the specified size using GD. */ function image_gd_resize($source, $destination, $width, $height) { if (!file_exists($source)) { return FALSE; } $info = image_get_info($source); if (!$info) { return FALSE; } $im = image_gd_open($source, $info['extension']); if (!$im) { return FALSE; } $res = imagecreatetruecolor($width, $height); if ($info['extension'] == 'png') { $transparency = imagecolorallocatealpha($res, 0, 0, 0, 127); imagealphablending($res, FALSE); imagefilledrectangle($res, 0, 0, $width, $height, $transparency); imagealphablending($res, TRUE); imagesavealpha($res, TRUE); } elseif ($info['extension'] == 'gif') { // If we have a specific transparent color. $transparency_index = imagecolortransparent($im); if ($transparency_index >= 0) { // Get the original image's transparent color's RGB values. $transparent_color = imagecolorsforindex($im, $transparency_index); // Allocate the same color in the new image resource. $transparency_index = imagecolorallocate($res, $transparent_color['red'], $transparent_color['green'], $transparent_color['blue']); // Completely fill the background of the new image with allocated color. imagefill($res, 0, 0, $transparency_index); // Set the background color for new image to transparent. imagecolortransparent($res, $transparency_index); // Find number of colors in the images palette. $number_colors = imagecolorstotal($im); // Convert from true color to palette to fix transparency issues. imagetruecolortopalette($res, TRUE, $number_colors); } } imagecopyresampled($res, $im, 0, 0, 0, 0, $width, $height, $info['width'], $info['height']); $result = image_gd_close($res, $destination, $info['extension']); imagedestroy($res); imagedestroy($im); return $result; } /** * Rotate an image the given number of degrees. */ function image_gd_rotate($source, $destination, $degrees, $background = 0x000000) { if (!function_exists('imageRotate')) { return FALSE; } $info = image_get_info($source); if (!$info) { return FALSE; } $im = image_gd_open($source, $info['extension']); if (!$im) { return FALSE; } $res = imageRotate($im, $degrees, $background); $result = image_gd_close($res, $destination, $info['extension']); return $result; } /** * Crop an image using the GD toolkit. */ function image_gd_crop($source, $destination, $x, $y, $width, $height) { $info = image_get_info($source); if (!$info) { return FALSE; } $im = image_gd_open($source, $info['extension']); $res = imageCreateTrueColor($width, $height); imageCopy($res, $im, 0, 0, $x, $y, $width, $height); $result = image_gd_close($res, $destination, $info['extension']); imageDestroy($res); imageDestroy($im); return $result; } /** * GD helper function to create an image resource from a file. * * @param $file * A string file path where the iamge should be saved. * @param $extension * A string containing one of the following extensions: gif, jpg, jpeg, png. * @return * An image resource, or FALSE on error. */ function image_gd_open($file, $extension) { $extension = str_replace('jpg', 'jpeg', $extension); $open_func = 'imageCreateFrom'. $extension; if (!function_exists($open_func)) { return FALSE; } return $open_func($file); } /** * GD helper to write an image resource to a destination file. * * @param $res * An image resource created with image_gd_open(). * @param $destination * A string file path where the iamge should be saved. * @param $extension * A string containing one of the following extensions: gif, jpg, jpeg, png. * @return * Boolean indicating success. */ function image_gd_close($res, $destination, $extension) { $extension = str_replace('jpg', 'jpeg', $extension); $close_func = 'image'. $extension; if (!function_exists($close_func)) { return FALSE; } if ($extension == 'jpeg') { return $close_func($res, $destination, variable_get('image_jpeg_quality', 75)); } else { return $close_func($res, $destination); } } /** * @} End of "ingroup image". */