I want to add a image to my Logout.php. What would be the best way to add it into the script? Here's the entire file except the Boonex reference: I highlighted the area, I believe needs to be changed.
<?php
ob_start();
require_once( 'inc/header.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' );
require_once( BX_DIRECTORY_PATH_INC . 'profiles.inc.php' );
ob_end_clean();
if (isset( $_COOKIE['memberID']) && isset($_COOKIE['memberPassword']))
bx_logout();
$_page['name_index'] = 150;
$_page['css_name'] = '';
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = MsgBox(_t('_Please Wait'));
$_page_cont[$_ni]['url_relocate'] = $site['url'];
send_headers_page_changed();
PageCode();
I have placed the image into media/images in Dolphin core. The size is 600px x 800px and I would like to center it in the screen. I have no PHP experience, but I learn quick. So can I just change highlighted to this:
<img style="border: 221; margin: 0px;" src="http://www.mysite.com/media/images/leaving.png>" alt="Logout Humor" width="600" height="800">
Or do I need to call out the image type
imagepng( $my_img, "leaving.png" );
or just:
$myimage = imagecreatefrompng ( "leaving.png" )
I am a bit confused. Any advice. Concerns maybe resource usage optimization and/or rendering delayed too long. Plus correct coding.
BTW if anyone likes the pic they are welcome to use it.