This is a simple CSS3 3D experiment showing the conversion of an image into a realistic 3D cuboid when hovering over it. The CSS includes a shadow effect to make this action more realistic.
A Pen by Iván Melgrati on CodePen.
| <? | |
| #Include the class | |
| require_once("iam_backup.php"); | |
| # Set the parameters: We only set the Database connection. The connection procedure could be in an include file | |
| # This will dump the database and prompt the user to download it. No compression is applied here. | |
| $conn = @mysql_pconnect("localhost","root",""); | |
| if(!$result) // If no connection, return 0 | |
| { | |
| echo "An error has occurred. Could not connect to the server"; | |
| } |
| $(window).bind('resize', function(e) | |
| { | |
| window.resizeEvt; | |
| $(window).resize(function() | |
| { | |
| clearTimeout(window.resizeEvt); | |
| window.resizeEvt = setTimeout(function() | |
| { | |
| if($(window).width() != previous_width) | |
| { |
| # Deny access to all .htaccess files | |
| <files ~ "^.*\.([Hh][Tt][Aa])"> | |
| order allow,deny | |
| deny from all | |
| satisfy all | |
| </files> |
| AddHandler cgi-script .php .pl .py .jsp .asp .htm .shtml .sh .cgi | |
| Options -ExecCGI |
| # Disable directory browsing | |
| Options All -Indexes |
| # Disable access to all file types except the following | |
| Order deny,allow | |
| Deny from all | |
| <Files ~ ".(xml|css|js|jpe?g|png|gif|pdf|docx|rtf|odf|zip|rar)$"> | |
| Allow from all | |
| </Files> |
| # Block wp-includes folder and files | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteBase / | |
| RewriteRule ^wp-admin/includes/ - [F,L] | |
| RewriteRule !^wp-includes/ - [S=3] | |
| RewriteRule ^wp-includes/[^/]+\.php$ - [F,L] | |
| RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L] | |
| RewriteRule ^wp-includes/theme-compat/ - [F,L] | |
| </IfModule> |
| # Deny access to wp-config.php file | |
| <files wp-config.php> | |
| order allow,deny | |
| deny from all | |
| </files> |
| Disable PUT and DELETE Apache requests and disable Server signature display |
This is a simple CSS3 3D experiment showing the conversion of an image into a realistic 3D cuboid when hovering over it. The CSS includes a shadow effect to make this action more realistic.
A Pen by Iván Melgrati on CodePen.