Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 12:37:45 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155504 Posts in 21710 Topics by 7736 Members
Latest Member: deenangle
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Change index.php to index2.php when adding new page...  (Read 6504 times)
bsp4750-denmark

Offline Offline

Posts: 6


« on: May 25, 2009, 12:15:50 PM »

Hey everybody.

Is it possible to change the way new pages are generated in, so that insted of

<?php
$page_id = 17;
require("../config.php");
require(WB_PATH."/index.php");
?>

it automatic will look like this,

<?php
$page_id = 17;
require("../config.php");
require(WB_PATH."/index2.php");
?>

(playing with WB2.7)
Logged
BerndJM

Offline Offline

Posts: 1764



« Reply #1 on: May 25, 2009, 12:34:19 PM »

Hi,

this entry is generated in /framework/functions.php at line ~467 in the function create_access_file()
But be aware that changes in the core files may be overwritten during an update!

Regards Bernd
Logged

In theory, there is no difference between theory and practice. But, in practice, there is.
bsp4750-denmark

Offline Offline

Posts: 6


« Reply #2 on: May 25, 2009, 01:07:50 PM »

thanks.

it works, great.

//BSP4750
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!