» Log in
User Name:

Password:

Not a member yet?
Register Now!
» Online Users: 69
0 members and 69 guests
No Members online
Most users ever online was 611, 03-21-2008 at 11:10 PM.
» .::.
Web Hosting - web hosting, dedicated servers and web design services
Online Degree - search for 1000+ online degrees, online colleges & online universities.
Tattoo - we are a group of tattoo enthusiasts
Gexa Energy - your absolute best choice in electric service
Texas electricity - save on electric rates
Football Betting - best nfl betting promotions at sportsbook.com.
Oral Chelation - initial cleansing of your veins & arteries
Portatiles - Ofertas en Ordenadores y Portatiles. Increibles Ofertas DELL.

Register Now! Contact Us

About this Page
This is a discussion on can somebody make this file "nuke friendly"? within the Site design forums, part of the General category; Its an index page for photopost and im trying to port it to work with nuke, but i dont know ...


Go Back   Nukemods Forum » General » Site design

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-28-2003, 12:06 AM
Junior Member
 
Join Date: May 2003
Posts: 47
can somebody make this file "nuke friendly"?
Its an index page for photopost and im trying to port it to work with nuke, but i dont know what im doing.

Code:
<?php
//////////////////////////// COPYRIGHT NOTICE //////////////////////////////
// This script is part of PhotoPost PHP, a software application by        //
// All Enthusiast, Inc.  Use of any kind of part or all of this           //
// script or modification of this script requires a license from All      //
// Enthusiast, Inc.  Use or modification of this script without a license //
// constitutes Software Piracy and will result in legal action from All   //
// Enthusiast, Inc.  All rights reserved.                                 //
// http://www.photopost.com      legal@photopost.com                      //
// Contributing Developer: Michael Pierce (danasoft.com)                  //
//                                                                        //
//            PhotoPost Copyright 2003, All Enthusiast, Inc.              //
////////////////////////////////////////////////////////////////////////////

require "pp-inc.php";

if ( is_numeric($argv[0]) ) {
    header("Location: {$Globals['maindir']}/showphoto.php?photo={$argv[0]}");
    exit;
}

require "languages/$pplang/index.php";
require "login-inc.php";

if ( file_exists("install.php") || file_exists("{$Globals['maindir']}/install.php") ) {
    diewell( "For security reasons, please remove the install.php from the PhotoPost directory before proceeding." );
    exit;
}

authenticate();

if ( isset($Globals['ppboards']) && $User['adminedit'] != 1 ) {
    if ( $Globals['ppboards'] == "closed" ) {
        print $Globals['closedmsg'];
        exit;
    }
}

topmenu();
$tablehead = $Globals['pp_lang']['tablehead'];

if ( isset($cat) ) {
    if ($ugview{$cat} == 1 ) {
        diewell( $Globals['pp_lang']['noview'] );
    }

    $query = "SELECT id,catname,password FROM {$Globals['pp_db_prefix']}categories WHERE id=$cat";
    $resultb = ppmysql_query($query,$link);

    list( $catid, $cattitle, $catpass ) = mysql_fetch_row($resultb);
    ppmysql_free_result( $resultb );

    if ( trim($catpass) != "" && $User['adminedit'] != 1 ) {
        if ( !isset($password) ) $password = "";
        
        if ( $password != $catpass ) {
            get_password( $cat );
            exit;
        }
    }
    
    if ( $User['userid'] > 0 && $Globals['displaynew'] == "yes" ) {
        list($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime();
        $mon = $mon + 1;    
        $lasttimeon = mktime($hour,$min,$sec,$mon,$mday,$year);
        
        $laston = "REPLACE INTO {$Globals['pp_db_prefix']}laston VALUES($cat,{$User['userid']},$lasttimeon)";
        $resultb = ppmysql_query($laston, $link);    
    }

    $tablehead = "$cattitle";    
    childsub($cat);
    $childnav = "<font class=\"small\"><a href=\"{$Globals['maindir']}/index.php\">{$Globals['pp_lang']['home']}</a> $childnav</font>";
    $searchcat = $cat;
}
else {
    if ( $User['username'] != "" && $User['username'] != "Unregistered" ) $childnav = "{$Globals['pp_lang']['welcomeuser']} {$User['username']}!";
    else $childnav = "{$Globals['pp_lang']['welcome']} {$Globals['galleryname']}!";
    $searchcat = 998;
}

printheader( $cat, $tablehead );

if ( $Globals['mostrecent'] == "yes" && $Globals['recentdefault'] == "no" ) {
    display_gallery("latest");
}

$count = 0; $catdepth = 0;
$catrows = ""; $cptotal = 0; $posttotal = 0; $totalviews = 0; $diskspace = 0;

if ( !(isset($cat)) ) {
    catrow(0);
}
else {
    catrow($cat);
}

$usertotal = get_totalusers();

$query = "SELECT SUM(views), SUM(filesize) AS fsize FROM {$Globals['pp_db_prefix']}photos";
$totalv = ppmysql_query($query,$link);
list( $totalviews, $diskuse ) = mysql_fetch_row($totalv);
ppmysql_free_result($totalv);

$totalviews = number_format( $totalviews );
$totalphotos = number_format( $totalphotos );
$usertotal = number_format( $usertotal );
$posttotal = number_format( $posttotal );

$diskspace = $diskuse/1048576;
$diskspace = number_format( $diskspace, 1 );
$diskspace = "$diskspace MB";

// Lets get the Top 5 Posters
$query = "SELECT user,userid,COUNT(*) AS pcount FROM {$Globals['pp_db_prefix']}photos GROUP BY user ORDER BY pcount DESC";
$queryz = ppmysql_query($query,$link);
$rowcnt = mysql_num_rows($queryz);
$numfound = 0;

while ( list($theuser, $theuserid, $uphotos) = mysql_fetch_row($queryz)) {
    $numfound++;
    $topposters[$numfound] = $theuser;
    $topid[$numfound] = $theuserid;
    $topposts[$numfound] = $uphotos;
    if ( $numfound == 5 ) break;
}

if ( $numfound > 0 ) {
    $toplist = "
{$Globals['pp_lang']['toposter']}";
    for ( $x=1; $x < ($numfound+1); $x++ ) {
        $toplist .= "<a href=\"{$Globals['maindir']}/showgallery.php?ppuser={$topid[$x]}&amp;cat=500\">{$topposters[$x]} <font class=\"small\">($topposts[$x])</font></a>";
    }
}

// Lets get Who is Online
$oquery = "SELECT userid,date FROM {$Globals['pp_db_prefix']}iponline ORDER BY date DESC";
$oqueryz = ppmysql_query($oquery,$link);
$onumfound = 0; $anononline=0; $whoonline = "";

while ( list($ouser, $odate) = mysql_fetch_row($oqueryz)) {
    $onumfound++;
    
    if ( $ouser != "" && $ouser != "Unregistered" ) {
        if ( $whoonline != "" ) $whoonline .= ", ";
        $whoonline .= "$ouser";
    }
    else $anononline++;
}

if ( $onumfound > 0 ) {
    $whogreet = "{$Globals['pp_lang']['whoonline']}: ";
    if ( $whoonline != "" ) {
        $whoonline = "$whoonline";
        if ( $anononline > 0 ) {
            if ( $anononline == 1 ) $whoonline .= " {$Globals['pp_lang']['and']} $anononline {$Globals['pp_lang']['unruser']}";
            else $whoonline .= " {$Globals['pp_lang']['and']} $anononline {$Globals['pp_lang']['unrusers']}";
        }        
    }
    else {
        if ( $anononline == 1 ) $whoonline .= "$anononline {$Globals['pp_lang']['unruser']}";
        else $whoonline .= "$anononline {$Globals['pp_lang']['unrusers']}";
    }
    $whoonline = "{$whogreet}{$whoonline}.";
}

include( "templates/menubar.tmpl" );
include( "templates/index.tmpl" );

if ( $Globals['mostrecent'] == "yes" && $Globals['recentdefault'] == "yes") {
    display_gallery("latest");
}
if ( $Globals['dispopular'] == "yes" ) {
    display_gallery("most_views");
}
if ( $Globals['disrandom'] == "yes" ) {
    display_gallery("random");
}

printfooter();

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 07-28-2003, 12:43 AM
Senior Member
 
Join Date: Sep 2002
Posts: 2,905
First, of all. to convert it to work with Nuke, you need to get the Author's permission. It is clearly stated in one of the install or readme files, can't remember.

Second :wink:
I already looked at this program, and it would take some HEAVY changes to make it work.
If you can get the Authors permission, I will check and see if I can get it ported to work. There may be others interested in this as well
Looks like a nice Gallery type module.

mikem
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 07-28-2003, 12:51 AM
Junior Member
 
Join Date: May 2003
Posts: 47
I already own the license. So it is legal for me to hack into. As long as i only use it on my site. As a matter of fact there is a website specificly for hacking into it, photopostdev.com but none of those guys can help me with the Nuke side of it.
Honestly , i dont know what im doing but i dont think it would be that hatd to intagrate, i think the database is already almost intagrated as in one of the photopost pages is recognizes my 652 members.
At one point i had it so that the idex page was almost showing up on my site, but it was a jumble of code, thats why i thought if i made the index page into a nuke module, it might help, but the module make thing just doesnt work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
forum error"Sorry, such file does not exists" m4u91 Nuke 7.x - General 3 12-20-2004 11:22 AM
forum error "Sorry, such file doesn't exist" m4u91 Nuke 7.x - General 1 12-19-2004 08:46 AM
How can I make "My Headlines" disappear? Sage Purged Topics 3 05-03-2003 08:02 PM
"Sorry, you can't access this file directly..." dcasmr Purged Topics 0 03-26-2003 11:03 PM
want to make my own logo similar to "fiblack" SchmoobeeDrew Site design 0 12-10-2002 11:16 PM


All times are GMT -5. The time now is 12:17 AM.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31