| Code: |
<?php
##########################################################################
# This php-nuke block will display a random thumbnail image,
# from the galleries of onto your nuke site.
##########################################################################
# block-erikkadevine.php for PHP-NUKE ver.6.0 and above
#-------------------------
# Random Bella Babe
#-------------------------
# Version: 1.0
#
# Copyright (c) 2003 by:
#
# LAB Publishing
# (http://www.erikkadevine.com)
# (funky@erikkadevine.com)
#
# All coding by (many thanks dude!)
#
###########################################################################
# Random Bella Babe is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License.
# Random Bella Babe is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. You also agree to our terms
# set out here http://www.erikkadevine.com/terms.htm
#
# For a copy of the GNU General Public License write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
# 02111-1307 USA
##########################################################################
# To use, simply drop in your blocks folder and activate through admin.
#
# If the code don't work you are on your own.
##########################################################################
# If you use this on your site let me know so I can add your link to
# our users list. If you develop modifications I'd be interested.
#
##########################################################################
if (eregi("block-erikkadevine.php", $PHP_SELF)) {
die("Sorry, you can't access this file directly.");
}
// You can set the width of the image to be displayed.
// Be advised, if the actual image width is less than the image width you supply,
// then the actual image width will be used (to prevent distorted images).
$img_width = 140;
ob_start();
include("http://www.erikkadevine.com/bella_random_pic.php?img_width=$img_width");
$content = ob_get_contents();
ob_end_clean();
?> |