Version 1.3.0
This commit is contained in:
1 parent
7ef3d1712a
commit
f87d29ba65
290 files changed
+50206
-17930
No files matched your search
@@ -2,15 +2,17 @@
|
||||
|
||||
/*
|
||||
+--------------------------------------------------------------------------
|
||||
| Invision Board v1.1
|
||||
| Invision Power Board v1.3 Final
|
||||
| ========================================
|
||||
| by Matthew Mecham
|
||||
| (c) 2001,2002 Invision Power Services
|
||||
| http://www.ibforums.com
|
||||
| (c) 2001 - 2003 Invision Power Services
|
||||
| http://www.invisionpower.com
|
||||
| ========================================
|
||||
| Web: http://www.ibforums.com
|
||||
| Email: phpboards@ibforums.com
|
||||
| Licence Info: phpib-licence@ibforums.com
|
||||
| Web: http://www.invisionboard.com
|
||||
| Time: Sun, 04 Jan 2004 00:30:16 GMT
|
||||
| Release: 28e7bfb25f08ac72a789cb1b172fa185
|
||||
| Email: matt@invisionpower.com
|
||||
| Licence Info: http://www.invisionboard.com/?license
|
||||
+---------------------------------------------------------------------------
|
||||
|
|
||||
| > Help Control functions
|
||||
@@ -21,6 +23,11 @@
|
||||
+--------------------------------------------------------------------------
|
||||
*/
|
||||
|
||||
if ( ! defined( 'IN_ACP' ) )
|
||||
{
|
||||
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'admin.php'.";
|
||||
exit();
|
||||
}
|
||||
|
||||
$idx = new ad_settings();
|
||||
|
||||
@@ -30,7 +37,20 @@ class ad_settings {
|
||||
var $base_url;
|
||||
|
||||
function ad_settings() {
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
global $IN, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
//---------------------------------------
|
||||
// Kill globals - globals bad, Homer good.
|
||||
//---------------------------------------
|
||||
|
||||
$tmp_in = array_merge( $_GET, $_POST, $_COOKIE );
|
||||
|
||||
foreach ( $tmp_in as $k => $v )
|
||||
{
|
||||
unset($$k);
|
||||
}
|
||||
|
||||
//---------------------------------------
|
||||
|
||||
switch($IN['code'])
|
||||
{
|
||||
@@ -74,7 +94,7 @@ class ad_settings {
|
||||
|
||||
function add_splash()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_FILES;
|
||||
global $IN, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_FILES;
|
||||
|
||||
$FILE_NAME = $HTTP_POST_FILES['FILE_UPLOAD']['name'];
|
||||
$FILE_SIZE = $HTTP_POST_FILES['FILE_UPLOAD']['size'];
|
||||
@@ -140,7 +160,7 @@ class ad_settings {
|
||||
|
||||
if ( ! preg_match( "/<% COPYRIGHT %>/", $data ) )
|
||||
{
|
||||
$ADMIN->error("This file does not appear to be a valid Invision Board Wrapper file");
|
||||
$ADMIN->error("This file does not appear to be a valid Invision Power Board Wrapper file");
|
||||
}
|
||||
|
||||
//----------------------------------
|
||||
@@ -163,7 +183,7 @@ class ad_settings {
|
||||
|
||||
function export()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
global $IN, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
if ($IN['id'] == "")
|
||||
{
|
||||
@@ -205,7 +225,7 @@ class ad_settings {
|
||||
|
||||
function remove()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
global $IN, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
@@ -232,7 +252,7 @@ class ad_settings {
|
||||
|
||||
function save_wrapper( $type='add' )
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
global $IN, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP, $HTTP_POST_VARS;
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
@@ -254,7 +274,14 @@ class ad_settings {
|
||||
$ADMIN->error("You can't have an empty template, can you?");
|
||||
}
|
||||
|
||||
$tmpl = preg_replace( "!</textarea>!", "/textarea>", stripslashes($HTTP_POST_VARS['template']) );
|
||||
$tmpl = preg_replace( "!</textarea>!", "/textarea>", stripslashes($HTTP_POST_VARS['template']) );
|
||||
|
||||
$tmpl = str_replace( "&amp;" , "&" , $tmpl );
|
||||
$tmpl = str_replace( "&nbsp;", " " , $tmpl );
|
||||
$tmpl = str_replace( "&copy;", "©" , $tmpl );
|
||||
$tmpl = preg_replace( "/\\\/" , "\" , $tmpl );
|
||||
$tmpl = preg_replace( "/\/" , '\\\\\\\\' , $tmpl ); // o_O
|
||||
|
||||
|
||||
if ( ! preg_match( "/<% BOARD %>/", $tmpl ) )
|
||||
{
|
||||
@@ -299,7 +326,7 @@ class ad_settings {
|
||||
|
||||
function do_form( $type='add' )
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
global $IN, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
@@ -348,7 +375,14 @@ class ad_settings {
|
||||
|
||||
//+-------------------------------
|
||||
|
||||
$row['template'] = preg_replace( "/\/textarea>/", "</textarea>", $row['template'] ); // Stop html killing the text area
|
||||
$row['template'] = preg_replace( "/\/textarea>/", "</textarea>", $row['template'] ); // Stop html killing the text area
|
||||
|
||||
// Sort out amps and stuff
|
||||
|
||||
$row['template'] = str_replace( "&", "&amp;", $row['template'] );
|
||||
$row['template'] = str_replace( " ", "&nbsp;", $row['template'] );
|
||||
$row['template'] = str_replace( "©", "&copy;", $row['template'] );
|
||||
$row['template'] = preg_replace( "/\\\/" , "\" , $row['template'] );
|
||||
|
||||
$ADMIN->html .= $SKIN->start_table( $button );
|
||||
|
||||
@@ -359,7 +393,7 @@ class ad_settings {
|
||||
|
||||
$ADMIN->html .= $SKIN->add_td_row( array(
|
||||
"Content",
|
||||
$SKIN->form_textarea('template', $row['template'], "60", "15"),
|
||||
$SKIN->form_textarea('template', $row['template'], $INFO['tx'], $INFO['ty']),
|
||||
) );
|
||||
|
||||
$ADMIN->html .= $SKIN->end_form($button);
|
||||
@@ -380,7 +414,7 @@ class ad_settings {
|
||||
|
||||
function list_wrappers()
|
||||
{
|
||||
global $IN, $root_path, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
global $IN, $INFO, $DB, $SKIN, $ADMIN, $std, $MEMBER, $GROUP;
|
||||
|
||||
$form_array = array();
|
||||
|
||||
|
||||
Reference in new issue
Block a user