#!/usr/bin/perl ############################################################################### # BizDesign ImageFolio Professional Edition 3.1 (Three-dot-One) ############################################################################### # # ###### ## VERSION : 3.1 # ## ### RELEASED ON : 01/21/2003 # ### ## LAST MODIFIED : 01/21/2003 # ## ### ## # ###### ### ## # ############################################################################### # Released by BizDesign, Inc. # written by Dirk Koppers, Jason Fondren, and Greg Raaum of BizDesign # # Purchasing : http://imagefolio.com/purchase/ # Support : http://imagefolio.com/forum/ # Phone : (214) 752-8767 # Email : sales@imagefolio.com ############################################################################### # COPYRIGHT AND LICENSE INFORMATION : # # Copyright (c) 1999-2003 BizDesign, Inc. All rights reserved. # # Selling or distributing the code for this program without prior written # consent is expressly forbidden. # # One licensed copy of the program may reside on a single server, in use by a # single domain. For each installed instance of the program, a separate # license is required. # # Licensed users may alter or modify this software, at their own risk, of # course. They may also hire others to modify their own copy of the code, as # long as the code is not transferred to or retained by the individual who is # hired (unless he/she is also a license holder). Although license-holders # may modify the code for their use, modified code may NOT be resold or # distributed. # # THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, # INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND # FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BIZDESIGN, # INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, # PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR # BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER # IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. # # BizDesign, Inc. is not liable for any conduct associated with image gallery # activity, nor for any binary media posted using this program, including but # not imited to images, photographs, movies, and clipart. # # The user must assume the entire risk of using the program. Although this # program has been thoroughly tested on BizDesign's servers, BizDesign does not # warrant that it works on all servers and will not be held liable for anything, # including but not limited to, misusage, error, or loss of data. ANY # LIABILITY OF THE SELLER WILL BE LIMITED EXCLUSIVELY TO PRODUCT REPLACEMENT # OR REFUND OF PURCHASE PRICE. Use at your own risk! ############################################################################### # Do not modify below this line unless you know what you are doing. ############################################################################### eval { ($0 =~ m,(.*)/[^/]+,) && unshift (@INC, "$1"); # Get the script location: UNIX ($0 =~ m,(.*)\\[^\\]+,) && unshift (@INC, "$1"); # Get the script location: Windows require "config/config.pl"; # Change this to the absolute path if you have problems. require "$libpath/shared.pl"; &parse_cookies; &parse_form; &admin_check; require "$libpath/crypt.pl"; if ($using_lightbox_mod){ require "$config_directory/lightbox_config.pl"; $lightbox = $COOKIE{$lightbox_cookie_name}; } if ($using_multiuser_mod) { require "$config_directory/users_config.pl"; require "$libpath/users_access.pl"; if (!$is_admin) {&start_multiuser_mod;} } else { $allow_free_access = 1; } &config_more; if ($antileech or $watermark) { &anti_leech;} if ($using_lightbox_mod) { &lb_jscript; } &pretty_index_date; ⊤ }; if ($@) { print "Content-type: text/html\n\n
Script Error: $@\n"; } exit; ############################################################################### # TOP # Determines what to do ############################################################################### sub top { $| = 1; if ($is_admin) { $site_title = "***Admin Mode*** $site_title"; $admin_tools = &create_tools; $cache_page_age = (); $cache_date = (); $allow_free_access = 1; $full_size_per = 1; $one_time_access = $FORM{'ota'}; } if ($COOKIE{'cachereload'}) { ($cachereload_direct, $cachereload_link) = split(/\|/, $COOKIE{'cachereload'}); if ($FORM{'direct'} && $cachereload_direct) { $force_cachereload = 1; $cachereload_direct = $cachereload_direct - 1; } elsif ($FORM{'link'} && $cachereload_link) { $force_cachereload = 1; $cachereload_link = (); } if ($cachereload_direct or $cachereload_link) { print "Set-Cookie: cachereload=$cachereload_direct|$cachereload_link; path=/;\n"; } else { print "Set-Cookie: cachereload=; path=/;\n"; } } if (($FORM{'lightbox'} eq 'view') or ($FORM{'lbview'} eq 'view')) { $cache_page_age = (); } if ($cache_page_age) { if (!$full_query && !-e "$cache_directory/pages/index.html") { my $index_page = qq|