Welcome Guest ( Log In | Register )


Check out the FREE chatroom mod for IPB 3.x

 
Reply to this topicStart new topic
Index.php, Question From A Real Newbie
mman
post May 5 2003, 11:32 AM
Post #1


Newbie
*

Group: Members
Posts: 9
Joined: 17-April 03
Member No.: 3,796



Hello Reader,

I'm wondering how I access 'index.php' to install modifacations. I've tried all the ways I can think of but I can't figure out how I get to it!

Thanks!

huh.gif mman
Go to the top of the page
 
+Quote Post
Dopey
post May 5 2003, 04:03 PM
Post #2


Mod God
*****

Group: Members
Posts: 1,638
Joined: 21-February 03
Member No.: 56
IPB Version: Not Applicable



Open it with a text editor.
Go to the top of the page
 
+Quote Post
mman
post May 5 2003, 04:38 PM
Post #3


Newbie
*

Group: Members
Posts: 9
Joined: 17-April 03
Member No.: 3,796



So FTP to my site and open that index.php with notepad? I tried the one in the invision folder I downloaded but it wasn't right.

mman huh.gif
Go to the top of the page
 
+Quote Post
wammuz
post May 6 2003, 08:27 AM
Post #4


Newbie
*

Group: Members
Posts: 2
Joined: 4-May 03
Member No.: 9,039



Just open it with notepad when it's still on your pc
Go to the top of the page
 
+Quote Post
Dopey
post May 8 2003, 04:39 PM
Post #5


Mod God
*****

Group: Members
Posts: 1,638
Joined: 21-February 03
Member No.: 56
IPB Version: Not Applicable



TextPad
Open TextPad, open file from there. smile.gif
Go to the top of the page
 
+Quote Post
mman
post May 10 2003, 03:29 PM
Post #6


Newbie
*

Group: Members
Posts: 9
Joined: 17-April 03
Member No.: 3,796



So, I still don't see where everything in the code below is for installing the 'Karma' hack.

CODE
<?php

/*
+--------------------------------------------------------------------------
|   Invision Power Board v1.1
|   ========================================
|   by Matthew Mecham
|   (c) 2001,2002 Invision Power Services, Inc
|   http://www.ibforums.com
|   ========================================
|   Web: http://www.ibforums.com
|   Email: phpboards@ibforums.com
|   Licence Info: phpib-licence@ibforums.com
+---------------------------------------------------------------------------
|
|   > Wrapper script
|   > Script written by Matt Mecham
|   > Date started: 14th February 2002
|
+--------------------------------------------------------------------------
*/


//-----------------------------------------------
// USER CONFIGURABLE ELEMENTS
//-----------------------------------------------

// Root path

$root_path = "./";

//-----------------------------------------------
// NO USER EDITABLE SECTIONS BELOW
//-----------------------------------------------

error_reporting  (E_ERROR | E_WARNING | E_PARSE);
set_magic_quotes_runtime(0);

class Debug {
   function startTimer() {
       global $starttime;
       $mtime = microtime ();
       $mtime = explode (' ', $mtime);
       $mtime = $mtime[1] + $mtime[0];
       $starttime = $mtime;
   }
   function endTimer() {
       global $starttime;
       $mtime = microtime ();
       $mtime = explode (' ', $mtime);
       $mtime = $mtime[1] + $mtime[0];
       $endtime = $mtime;
       $totaltime = round (($endtime - $starttime), 5);
       return $totaltime;
   }
}

class info {

var $member     = array();
var $input      = array();
var $session_id = "";
var $base_url   = "";
var $vars       = "";
var $skin_id    = "0";     // Skin Dir name
var $skin_rid   = "";      // Real skin id (numerical only)
var $lang_id    = "en";
var $skin       = "";
var $lang       = "";
var $server_load = 0;
var $version    = "v1.1.2";
var $lastclick  = "";
var $location   = "";
var $debug_html = "";

function info() {
 global $sess, $std, $DB, $root_path, $INFO;
 
 $this->vars = &$INFO;
 
 $this->vars['TEAM_ICON_URL']   = $INFO['html_url'] . '/team_icons';
 $this->vars['AVATARS_URL']     = $INFO['html_url'] . '/avatars';
 $this->vars['EMOTICONS_URL']   = $INFO['html_url'] . '/emoticons';
 $this->vars['mime_img']        = $INFO['html_url'] . '/mime_types';

}
}

//--------------------------------
// Import $INFO, now!
//--------------------------------

require $root_path."conf_global.php";

//--------------------------------
// The clocks a' tickin'
//--------------------------------
 
$Debug = new Debug;
$Debug->startTimer();

//--------------------------------
// Require our global functions
//--------------------------------

require $root_path."sources/functions.php";

$std   = new FUNC;
$print = new display();
$sess  = new session();

//--------------------------------
// Load the DB driver and such
//--------------------------------

$INFO['sql_driver'] = !$INFO['sql_driver'] ? 'mySQL' : $INFO['sql_driver'];

$to_require = $root_path."sources/Drivers/".$INFO['sql_driver'].".php";
require ($to_require);

$DB = new db_driver;

$DB->obj['sql_database']     = $INFO['sql_database'];
$DB->obj['sql_user']         = $INFO['sql_user'];
$DB->obj['sql_pass']         = $INFO['sql_pass'];
$DB->obj['sql_host']         = $INFO['sql_host'];
$DB->obj['sql_tbl_prefix']   = $INFO['sql_tbl_prefix'];

$DB->obj['debug']            = ($INFO['sql_debug'] == 1) ? $_GET['debug'] : 0;

// Get a DB connection

$DB->connect();

//--------------------------------
// Wrap it all up in a nice easy to
// transport super class
//--------------------------------

$ibforums             = new info();

//--------------------------------
//  Set up our vars
//--------------------------------

$ibforums->input      = $std->parse_incoming();
$ibforums->member     = $sess->authorise();
$ibforums->skin       = $std->load_skin();
$ibforums->lastclick  = $sess->last_click;
$ibforums->location   = $sess->location;
$ibforums->session_id = $sess->session_id;

list($ppu,$tpu) = explode( "&", $ibforums->member['view_prefs'] );
 
$ibforums->vars['display_max_topics'] = ($tpu > 0) ? $tpu : $ibforums->vars['display_max_topics'];
$ibforums->vars['display_max_posts']  = ($ppu > 0) ? $ppu : $ibforums->vars['display_max_posts'];

if ($ibforums->member['id'] and ( $std->my_getcookie('hide_sess') ) )
{
$ibforums->session_id = "";
}

$ibforums->base_url   = $ibforums->vars['board_url'].'/index.'.$ibforums->vars['php_ext'].'?s='.$ibforums->session_id;

$ibforums->skin_rid   = $ibforums->skin['set_id'];
$ibforums->skin_id    = 's'.$ibforums->skin['set_id'];

$ibforums->vars['img_url']   = 'style_images/' . $ibforums->skin['img_dir'];

//--------------------------------
//  Set up our language choice
//--------------------------------

if ($ibforums->vars['default_language'] == "")
{
$ibforums->vars['default_language'] = 'en';
}

$ibforums->lang_id = $ibforums->member['language'] ? $ibforums->member['language'] : $ibforums->vars['default_language'];

if ( ($ibforums->lang_id != $ibforums->vars['default_language']) and (! is_dir( $root_path."lang/".$ibforums->lang_id ) ) )
{
$ibforums->lang_id = $ibforums->vars['default_language'];
}
 
$ibforums->lang = $std->load_words($ibforums->lang, 'lang_global', $ibforums->lang_id);

//--------------------------------

$skin_universal = $std->load_template('skin_global');

//--------------------------------

if ($ibforums->input['act'] != 'Login' and $ibforums->input['act'] != 'Reg' and $ibforums->input['act'] != 'Attach')
{

//--------------------------------
//  Do we have permission to view
//  the board?
//--------------------------------

if ($ibforums->member['g_view_board'] != 1)
{
 $std->Error( array( 'LEVEL' => 1, 'MSG' => 'no_view_board') );
}

//--------------------------------
//  Is the board offline?
//--------------------------------

if ($ibforums->vars['board_offline'] == 1)
{
 if ($ibforums->member['g_access_offline'] != 1)
 {
  $std->board_offline();
 }
 
}

//--------------------------------
//  Is log in enforced?
//--------------------------------

if ( (! $ibforums->member['id']) and ($ibforums->vars['force_login'] == 1) )
{
 require $root_path."sources/Login.php";
 
}

}

//--------------------------------
// Decide what to do
//--------------------------------

$choice = array(
                "idx"      => "Boards",
                "SF"       => "Forums",
                "SR"       => "Forums",
                "ST"       => "Topics",
                "Login"    => "Login",
                "Post"     => "Post",
                "Poll"     => "lib/add_poll",
                "Reg"      => "Register",
                "Online"   => "Online",
                "Members"  => "Memberlist",
                "Help"     => "Help",
                "Search"   => "Search",
                "Mod"      => "Moderate",
                "Print"    => "misc/print_page",
                "Forward"  => "misc/forward_page",
                "Mail"     => "misc/contact_member",
                "Invite"   => "misc/contact_member",
                "ICQ"      => "misc/contact_member",
                "AOL"      => "misc/contact_member",
                "YAHOO"    => "misc/contact_member",
                "MSN"      => "misc/contact_member",
                "report"   => "misc/contact_member",
                "chat"     => "misc/contact_member",
                "Msg"      => "Messenger",
                "UserCP"   => "Usercp",
                "Profile"  => "Profile",
                "Track"    => "misc/tracker",
                "Stats"    => "misc/stats",
                "Attach"   => "misc/attach",
                'ib3'      => 'misc/ib3',
                'legends'  => 'misc/legends',
                'modcp'    => 'mod_cp',
                'calendar' => "calendar",
                'buddy'    => "browsebuddy",
              );

               
/***************************************************/

$ibforums->input['act'] = $ibforums->input['act'] == '' ? "idx" : $ibforums->input['act'];

// Check to make sure the array key exits..

if (! isset($choice[ $ibforums->input['act'] ]) )
{
$ibforums->input['act'] = 'idx';
}

// Require and run

require $root_path."sources/".$choice[ $ibforums->input['act'] ].".php";



//+-------------------------------------------------
// GLOBAL ROUTINES
//+-------------------------------------------------

function fatal_error($message="", $help="") {
echo("$message<br><br>$help");
exit;
}
?>


And, that's all very long spread out like this.

Long
Long

is

looooooooooong looooooooooooong

Why can't I get this?

mman huh.gif
Go to the top of the page
 
+Quote Post
Kithkin
post May 11 2003, 03:01 AM
Post #7


Sexcellent!
***

Group: Members
Posts: 403
Joined: 30-April 03
From: Internet
Member No.: 7,908
IPB Version: 1.2.x



maybe you can try and find a php editor on www.download.com if you cannot find a good one there you can always use dreamweaver which is pretty advanced biggrin.gif

On notepad you can press "ctrl + F" to find what line you need to edit biggrin.gif

I hope this helped and if not you can pm me, I have some programs that you will like cool.gif


--------------------
user posted image
Go to the top of the page
 
+Quote Post
gjtjuh
post May 11 2003, 06:46 AM
Post #8


Newbie
*

Group: Members
Posts: 7
Joined: 13-April 03
From: De Hoven (Holland)
Member No.: 1,958



Edit plus would be a nice one to do that with, you can acces your ftp with it and open the php files in it.


http://www.editplus.com/

here you can download a demo version of it.


--------------------
user posted image
Go to the top of the page
 
+Quote Post
Kithkin
post May 12 2003, 05:00 AM
Post #9


Sexcellent!
***

Group: Members
Posts: 403
Joined: 30-April 03
From: Internet
Member No.: 7,908
IPB Version: 1.2.x



haha, ja misschien dat zou mooi zijn biggrin.gif

Well yea you can use the program if you wont need it for long


--------------------
user posted image
Go to the top of the page
 
+Quote Post
gjtjuh
post May 12 2003, 10:53 AM
Post #10


Newbie
*

Group: Members
Posts: 7
Joined: 13-April 03
From: De Hoven (Holland)
Member No.: 1,958



fijn programma wink.gif

or you search for a hack wink.gif


--------------------
user posted image
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 2nd September 2010 - 09:10 AM

Search Engine Keywords
Invision Skins · IPB Skins