Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (34 sloc) 1.244 kb
<?php
##################################################
#
# Copyright (c) 2004-2012 OIC Group, Inc.
#
# This file is part of Exponent
#
# Exponent 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, or (at your option) any later version.
#
# GPL: http://www.gnu.org/licenses/gpl.txt
#
##################################################
/** @define "BASE" "." */
if (defined('EXPONENT')) return;
// bootstrap some exponenty goodness
include_once('exponent_bootstrap.php');
if (!defined('SYS_SESSION_KEY')) define('SYS_SESSION_KEY',PATH_RELATIVE);
if (isset($_GET['id'])) {
// Since bootstrap doesn't setup the session we need to define this
// otherwise the expFile can't find it's table desc from cache.
// Initialize the Database Subsystem
$db = expDatabase::connect(DB_USER,DB_PASS,DB_HOST.':'.DB_PORT,DB_NAME);
$file_obj = new expFile(intval($_GET['id']));
//$_GET['src'] = "/" . $file_obj->directory.$file_obj->filename;
$_GET['src'] = $file_obj->path;
unset($_GET['id']);
unset($_GET['square']);
}
require_once(BASE."external/phpThumb/phpThumb.php");
?>
Jump to Line
Something went wrong with that request. Please try again.