0
$fp = fopen($file, 'w');
0
fwrite($fp, $part->body);
0
-
@exec ('chmod 755 ' . $file);
0
if ($config["USE_IMAGEMAGICK"] && $config["AUTO_SMART_SHARP"]) {
0
ImageMagickSharpen($file);
0
$fp = fopen($file, 'w');
0
fwrite($fp, $part->body );
0
-
@exec ('chmod 755 ' . $file);
0
$cid = trim($part->headers["content-id"],"<>");; //cids are in <cid>
0
if ($part->ctype_secondary == "3gpp"
0
escapeshellarg($file) .
0
" -y -ss 00:00:01 -vframes 1 -an -sameq -f gif " .
0
escapeshellarg($scaledFile) );
0
-
@exec ('chmod 755 ' . escapeshellarg($scaledFile));
0
+
chmod(escapeshellarg($scaledFile), 0755);
0
$attachments["html"][] .= '<!--Mime Type of File is '.$part->ctype_primary."/".$part->ctype_secondary.' --><div class="' . $config["3GPDIV"].'"><a href="' . $config["URLPHOTOSDIR"] . $fileName. '"><img src="' . $config["URLPHOTOSDIR"] . $scaledFileName . '" alt="' . $part->ctype_parameters['name'] . '" style="'.$config["IMAGESTYLE"].'" class="'.$config["IMAGECLASS"].'" /></a></div>' . "\n";
0
escapeshellarg($source) . " ".
0
'\( +clone -modulate 100,0 \) \( +clone -unsharp 0x1+200+0 \) \( -clone 0 -edge 3 -colorspace GRAY -colors 256 -level 20%,95% -gaussian 10 -level 10%,95% \) -colorspace RGB -fx "u[0]+(((u[2]+1)/(u[1]+1))-1)*u[0]*u[3]" ' .
0
escapeshellarg($dest) );
0
-
@exec ('chmod 755 ' . escapeshellarg($dest));
0
+
chmod(escapeshellarg($dest), 0755);
0
function RotateImageWithImageMagick($file,$type,$rotation) {
0
escapeshellarg($file) .
0
escapeshellarg($file) );
0
-
@exec ('chmod 755 ' . escapeshellarg($file));
0
+
chmod(escapeshellarg($file), 0755);
0
function RotateImageWithGD($file,$type,$rotation) {
0
eval ('image'.$typePrefix.'($rotatedImage,$file);');
0
imagedestroy($sourceImage);
0
-
@exec ('chmod 755 ' . escapeshellarg($file));
0
+
chmod(escapeshellarg($file), 0755);
0
escapeshellarg($scaledFile) );
0
-
@exec ('chmod 755 ' . escapeshellarg($scaledFile));
0
+
chmod(escapeshellarg($scaledFile), 0755);
0
return(array($scaledFileName,$fileName));
0
$sizeInfo[0],$sizeInfo[1]);
0
imagejpeg($scaledImage,$scaledFile,$config["JPEGQUALITY"]);
0
-
@exec ('chmod 755 ' . escapeshellarg($scaledFile));
0
+
chmod(escapeshellarg($scaledFile), 0755);
0
imagedestroy($scaledImage);
0
imagedestroy($sourceImage);
0
print("Working on $match\n");
0
//Work on the category search to see if we can determine the cat_id
0
//check the database to see if their is a category similar
0
- $sql_name = 'SELECT cat_ID
0
- FROM ' . $wpdb->categories. '
0
- WHERE cat_name=\'' . addslashes($match) . '\'';
0
- $sql_id = 'SELECT cat_ID
0
- FROM ' . $wpdb->categories. '
0
- WHERE cat_ID=\'' . addslashes($match) . '\'';
0
- $sql_sub_name = 'SELECT cat_ID
0
- FROM ' . $wpdb->categories. '
0
- WHERE cat_name LIKE \'' . addslashes($match) . '%\' limit 1';
0
+ $sql_name = 'SELECT wpt.term_id FROM wp_terms wpt INNER JOIN wp_term_taxonomy wptt ON wpt.term_id = wptt.term_id WHERE wptt.taxonomy = \'category\' AND wpt.name = \'' . addslashes($match) . '\'';
0
+ $sql_id = 'SELECT wpt.term_id FROM wp_terms wpt INNER JOIN wp_term_taxonomy wptt ON wpt.term_id = wptt.term_id WHERE wptt.taxonomy = \'category\' AND wpt.term_id = \'' . addslashes($match) . '\'';
0
+ $sql_sub_name = 'SELECT wpt.term_id FROM wp_terms wpt INNER JOIN wp_term_taxonomy wptt ON wpt.term_id = wptt.term_id WHERE wptt.taxonomy = \'category\' AND wpt.name LIKE \'' . addslashes($match) . '%\'';
0
if ( $category = $wpdb->get_var($sql_name) ) {
0
- //then category is a name
d and found
0
+ //then category is a name
and found
0
} elseif ( $category = $wpdb->get_var($sql_id) ) {
0
//then cateogry was an ID and found
0
} elseif ( $category = $wpdb->get_var($sql_sub_name) ) {
Comments
No one has commented yet.