EOJ; TopCodeAdmin(); ContentBlockHead("Main Logo"); if( $_REQUEST['do_submit'] ) { if( !$_FILES['new_file'] or empty( $_FILES['new_file'] ) ) echo 'File not uploaded'; else { if( $_FILES['new_file']['error'] != 0 ) echo 'File upload error'; else { $aFileInfo = getimagesize( $_FILES['new_file']['tmp_name'] ); if( !$aFileInfo ) echo 'You uploaded not image file'; else { $ext = false; switch( $aFileInfo['mime'] ) { case 'image/jpeg': $ext = 'jpg'; break; case 'image/gif': $ext = 'gif'; break; case 'image/png': $ext = 'png'; break; } if( !$ext ) echo 'You uploaded not JPEG, GIF or PNG file'; else { echo 'Upload successful. '; setNewMainLogo( $_FILES['new_file']['tmp_name'], $ext ); } } } } echo '
(Back)'; } else { ?> Current logo:
Here you can change the main logo of your site
Select file:
Note: File must be in JPEG, GIF or PNG format

Resize New size: x px
Note: Resize is proportional
'; } if( $_REQUEST['prDoSubmit'] ) { if( !$_FILES['prNewFile'] or empty( $_FILES['prNewFile'] ) ) echo 'File not uploaded'; else { if( $_FILES['prNewFile']['error'] != 0 ) echo 'File upload error'; else { $aFileInfo = getimagesize( $_FILES['prNewFile']['tmp_name'] ); if( !$aFileInfo ) echo 'You uploaded not image file'; else { $ext = false; switch( $aFileInfo['mime'] ) { case 'image/jpeg': $ext = 'jpg'; break; case 'image/gif': $ext = 'gif'; break; case 'image/png': $ext = 'png'; break; default: $ext = false; } if( !$ext ) echo 'You uploaded not JPEG, GIF or PNG file'; else { echo 'Upload successful. '; $newFileName = $dir['imagesPromo'] . 'original/' . $_FILES['prNewFile']['name']; if( !move_uploaded_file( $_FILES['prNewFile']['tmp_name'], $newFileName ) ) echo 'Couldn\'t move file.'; else { ResizeAnyPromo($newFileName, $dir['imagesPromo'] . $_FILES['prNewFile']['name']); /*if( $_REQUEST['prResize'] ) { $width = (int)$_REQUEST['prNewWidth']; $height = (int)$_REQUEST['prNewHeight']; if( !( $width > 0 and $height > 0 ) ) echo 'You entered incorrect sizes'; else { if( imageResize( $newFileName, $newFileName, $width, $height ) != IMAGE_ERROR_SUCCESS ) echo 'Resize failed'; else echo 'Resize successful'; } }*/ } } } } } echo '
(Back)'; } else { if( $_POST['doSavePromoSett'] ) { setParam( 'enable_flash_promo', $_POST['enable_flash_promo'] ); setParam( 'custom_promo_code', $_POST['custom_promo_code'] ); echo '
Settings saved
'; } ?>
/> Current Images
Here you can upload new images

Select file:
Note: File must be in JPEG, GIF or PNG format

/>
0 and $height > 0 ) ) echo 'You entered incorrect sizes'; else { if( imageResize( $newFileName, $newFileName, $width, $height ) != IMAGE_ERROR_SUCCESS ) echo 'Resize failed'; else { echo 'Resize successful'; doReplaceLogo( $newFileName, $sLogoName ); } } } else doReplaceLogo( $newFileName, $sLogoName ); } } function doReplaceLogo( $tmpFile, $newFile ) { global $dir; @unlink( "{$dir['mediaImages']}logo.jpg" ); @unlink( "{$dir['mediaImages']}logo.png" ); @unlink( "{$dir['mediaImages']}logo.gif" ); rename( $tmpFile, $newFile ); } function getCurrentPromoImages() { global $site; ?>
(delete)
:  flag
:
:
:
:
:

Index page parameters successfully changed.