Version 3.4.9

This commit is contained in:
Neo committed 2025-12-19 00:44:43 -08:00
1 parent c603205a25
commit f9e857d255
920 files changed
+28189 -6840

No files matched your search

@@ -0,0 +1,10 @@
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com">IP.Board</a>
</body>
</html>
@@ -0,0 +1,59 @@
<?php
/**
* <pre>
* Invision Power Services
* IP.Calendar - requirements checker
* Last Updated: $Date: 2012-05-21 09:09:36 -0400 (Mon, 21 May 2012) $
* </pre>
*
* @author $Author: ips_terabyte $ (Orginal: Mark)
* @copyright (c) 2010 Invision Power Services, Inc.
* @license http://www.invisionpower.com/company/standards.php#license
* @package IP.Calendar
* @link http://www.invisionpower.com
* @since 8th September 2010
* @version $Revision: 10771 $
*/
class calendar_upgradeCheck
{
/**
* Check we can upgrade
*
* @return mixed Boolean true or error message
*/
public function checkForProblems()
{
//-----------------------------------------
// Compatibility check
//-----------------------------------------
$requiredIpbVersion = 32003; // 3.2.0
$args = func_get_args();
if ( !empty( $args ) )
{
$numbers = IPSSetUp::fetchAppVersionNumbers( 'core' );
/* Are we upgrading core now? */
if ( isset( $args[0]['core'] ) )
{
$ourVersion = $numbers['latest'][0];
}
/* No - check installed version */
else
{
$ourVersion = $numbers['current'][0];
}
if ( $requiredIpbVersion > $ourVersion )
{
$allVersions = IPSSetUp::fetchXmlAppVersions( 'core' );
return "This version of IP.Calendar requires IP.Board {$allVersions[ $requiredIpbVersion ]} or higher.";
}
}
return TRUE;
}
}
@@ -0,0 +1,10 @@
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com">IP.Board</a>
</body>
</html>
@@ -0,0 +1,10 @@
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com">IP.Board</a>
</body>
</html>
@@ -0,0 +1,8 @@
<?php
/**
* Installation Schematic File
* Generated on Thu, 30 Apr 2009 19:03:38 +0000 GMT
*/
$INDEX[] = "ALTER TABLE cal_events ADD FULLTEXT (event_content);";
$INDEX[] = "ALTER TABLE cal_events ADD FULLTEXT (event_title);";
?>
@@ -0,0 +1,6 @@
<?php
# CALENDARS
$INSERT[] ="INSERT INTO cal_calendars (cal_id, cal_title, cal_moderate, cal_position, cal_event_limit, cal_bday_limit, cal_rss_export, cal_rss_export_days, cal_rss_export_max, cal_rss_update, cal_rss_update_last, cal_rss_cache, cal_title_seo, cal_comment_moderate, cal_rsvp_owner) VALUES (1, 'Community Calendar', 1, 0, 2, 1, 1, 14, 20, 1440, UNIX_TIMESTAMP(), '', 'community-calendar', 0, 1);";
$INSERT[] ="INSERT INTO permission_index VALUES(NULL, 'calendar', 'calendar', 1, ',4,2,3,6,', ',4,3,6,', ',4,6,', '', '', '', '', 0, 0, NULL)";
$INSERT[] = "INSERT INTO rc_classes (onoff, class_title, class_desc, author, author_url, pversion, my_class, group_can_report, mod_group_perm, extra_data, lockd, app) VALUES(1, 'Calendar Plugin', 'Allows calendar entries to be reported', 'Invision Power Services, Inc', 'http://invisionpower.com', 'v1.0', 'calendar', ',1,2,3,4,6,', ',4,6,', 'N;', 1, 'calendar');";
@@ -0,0 +1,120 @@
<?php
/**
* Installation Schematic File
* Generated on Thu, 19 Feb 2009 08:15:47 +0000 GMT
*/
$TABLE[] = "CREATE TABLE cal_calendars (
cal_id int(10) unsigned NOT NULL auto_increment,
cal_title varchar(255) NOT NULL default '0',
cal_moderate tinyint(1) NOT NULL default '0',
cal_position int(3) NOT NULL default '0',
cal_event_limit int(2) unsigned NOT NULL default '0',
cal_bday_limit int(2) unsigned NOT NULL default '0',
cal_rss_export tinyint(1) NOT NULL default '0',
cal_rss_export_days int(3) unsigned NOT NULL default '0',
cal_rss_export_max tinyint(1) NOT NULL default '0',
cal_rss_update int(3) unsigned NOT NULL default '0',
cal_rss_update_last int(10) unsigned NOT NULL default '0',
cal_rss_cache mediumtext,
cal_title_seo VARCHAR( 255 ) NULL DEFAULT NULL,
cal_comment_moderate TINYINT( 1 ) NOT NULL DEFAULT '0',
cal_rsvp_owner TINYINT( 1 ) NOT NULL DEFAULT '0',
PRIMARY KEY (cal_id),
KEY cal_rss_export (cal_rss_export)
);";
$TABLE[] = "CREATE TABLE cal_events (
event_id int(10) unsigned NOT NULL auto_increment,
event_calendar_id int(10) unsigned NOT NULL default '0',
event_member_id mediumint(8) unsigned NOT NULL default '0',
event_content mediumtext,
event_title varchar(255) NOT NULL default '',
event_smilies tinyint(1) NOT NULL default '0',
event_comments int NOT NULL default '0',
event_comments_pending INT NOT NULL DEFAULT '0',
event_rsvp tinyint(1) NOT NULL default '0',
event_perms text,
event_private tinyint(1) NOT NULL default '0',
event_approved tinyint(1) NOT NULL default '0',
event_saved int(10) unsigned NOT NULL default '0',
event_lastupdated int(10) unsigned NOT NULL default '0',
event_recurring int(2) unsigned NOT NULL default '0',
event_start_date datetime NOT NULL,
event_end_date datetime default NULL,
event_title_seo VARCHAR( 255 ) NULL DEFAULT NULL,
event_rating_total INT NOT NULL DEFAULT '0',
event_rating_hits INT NOT NULL DEFAULT '0',
event_rating_avg INT NOT NULL DEFAULT '0',
event_attachments INT NOT NULL DEFAULT '0',
event_post_key VARCHAR( 32 ) NULL DEFAULT NULL,
event_sequence INT NOT NULL DEFAULT '0',
event_all_day TINYINT NOT NULL DEFAULT '0',
PRIMARY KEY (event_id),
KEY approved ( event_calendar_id , event_approved , event_start_date , event_end_date ),
KEY event_member_id (event_member_id, event_approved, event_private, event_lastupdated)
);";
$TABLE[] = "CREATE TABLE cal_event_ratings (
rating_id int(10) NOT NULL auto_increment,
rating_eid int(10) NOT NULL default '0',
rating_member_id mediumint(8) NOT NULL default '0',
rating_value smallint(6) NOT NULL default '0',
rating_ip_address varchar(46) NOT NULL,
PRIMARY KEY (rating_id),
KEY rating_eid (rating_eid,rating_member_id),
KEY rating_ip_address (rating_ip_address)
);";
$TABLE[] = "CREATE TABLE cal_event_comments (
comment_id int(10) NOT NULL auto_increment,
comment_eid int(10) NOT NULL default '0',
comment_mid mediumint(8) NOT NULL default '0',
comment_date int(11) NOT NULL default '0',
comment_approved tinyint(1) NOT NULL default '0',
comment_text mediumtext,
comment_append_edit tinyint(1) NOT NULL default '0',
comment_edit_time int(11) NOT NULL default '0',
comment_edit_name varchar(255) default NULL,
ip_address varchar(46) default NULL,
comment_author varchar(255) default NULL,
PRIMARY KEY (comment_id),
KEY comment_eid (comment_eid),
KEY ip_address (ip_address)
);";
$TABLE[] = "CREATE TABLE cal_event_rsvp (
rsvp_id int(11) NOT NULL auto_increment,
rsvp_event_id int(11) NOT NULL default '0',
rsvp_member_id int(11) NOT NULL default '0',
rsvp_date int(11) NOT NULL default '0',
PRIMARY KEY (rsvp_id),
KEY rsvp_event_id (rsvp_event_id),
KEY rsvp_member_id (rsvp_member_id)
);";
$TABLE[] = "CREATE TABLE cal_import_feeds (
feed_id int(11) NOT NULL auto_increment,
feed_title varchar(255) default NULL,
feed_url text,
feed_added int(11) NOT NULL default '0',
feed_lastupdated int(11) NOT NULL default '0',
feed_recache_freq int(11) NOT NULL default '0',
feed_calendar_id int(11) NOT NULL default '0',
feed_member_id INT NOT NULL DEFAULT '0',
feed_next_run INT NOT NULL DEFAULT '0',
PRIMARY KEY (feed_id),
KEY feed_calendar_id (feed_calendar_id),
KEY feed_next_run (feed_next_run)
);";
$TABLE[] = "CREATE TABLE cal_import_map (
import_id int(11) NOT NULL auto_increment,
import_feed_id int(11) NOT NULL default '0',
import_event_id int(11) NOT NULL default '0',
import_guid varchar(255) NOT NULL default '0',
PRIMARY KEY (import_id),
KEY import_feed_id (import_feed_id),
KEY import_event_id (import_event_id),
KEY import_guid (import_guid)
);";
?>
@@ -0,0 +1,10 @@
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com">IP.Board</a>
</body>
</html>
@@ -0,0 +1,10 @@
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com/">IP.Board</a>
</body>
</html>
@@ -0,0 +1,142 @@
<?php
/*
+--------------------------------------------------------------------------
| IP.Board v3.4.5
| ========================================
| by Matthew Mecham
| (c) 2001 - 2009 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
*/
$PRE = trim(ipsRegistry::dbFunctions()->getPrefix());
$DB = ipsRegistry::DB();
/* Fix app association for RC plugin */
$SQL[] = "UPDATE rc_classes SET app='calendar' WHERE my_class='calendar';";
/* Update cal_calendars table */
$SQL[] = "ALTER TABLE cal_calendars DROP cal_permissions,
ADD cal_title_seo VARCHAR( 255 ) NULL DEFAULT NULL,
ADD cal_comment_moderate TINYINT( 1 ) NOT NULL DEFAULT '0',
ADD cal_rsvp_owner TINYINT( 1 ) NOT NULL DEFAULT '0';";
/* New tables */
$SQL[] = "CREATE TABLE cal_event_ratings (
rating_id int(10) NOT NULL auto_increment,
rating_eid int(10) NOT NULL default '0',
rating_member_id mediumint(8) NOT NULL default '0',
rating_value smallint(6) NOT NULL default '0',
rating_ip_address varchar(46) NOT NULL,
PRIMARY KEY (rating_id),
KEY rating_eid (rating_eid,rating_member_id),
KEY rating_ip_address (rating_ip_address)
);";
$SQL[] = "CREATE TABLE cal_event_comments (
comment_id int(10) NOT NULL auto_increment,
comment_eid int(10) NOT NULL default '0',
comment_mid mediumint(8) NOT NULL default '0',
comment_date int(11) NOT NULL default '0',
comment_approved tinyint(1) NOT NULL default '0',
comment_text mediumtext,
comment_append_edit tinyint(1) NOT NULL default '0',
comment_edit_time int(11) NOT NULL default '0',
comment_edit_name varchar(255) default NULL,
ip_address varchar(46) default NULL,
comment_author varchar(255) default NULL,
PRIMARY KEY (comment_id),
KEY comment_eid (comment_eid),
KEY ip_address (ip_address)
);";
$SQL[] = "CREATE TABLE cal_event_rsvp (
rsvp_id int(11) NOT NULL auto_increment,
rsvp_event_id int(11) NOT NULL default '0',
rsvp_member_id int(11) NOT NULL default '0',
rsvp_date int(11) NOT NULL default '0',
PRIMARY KEY (rsvp_id),
KEY rsvp_event_id (rsvp_event_id),
KEY rsvp_member_id (rsvp_member_id)
);";
$SQL[] = "CREATE TABLE cal_import_feeds (
feed_id int(11) NOT NULL auto_increment,
feed_title varchar(255) default NULL,
feed_url text,
feed_added int(11) NOT NULL default '0',
feed_lastupdated int(11) NOT NULL default '0',
feed_recache_freq int(11) NOT NULL default '0',
feed_calendar_id int(11) NOT NULL default '0',
feed_member_id INT NOT NULL DEFAULT '0',
feed_next_run INT NOT NULL DEFAULT '0',
PRIMARY KEY (feed_id),
KEY feed_calendar_id (feed_calendar_id),
KEY feed_next_run (feed_next_run)
);";
$SQL[] = "CREATE TABLE cal_import_map (
import_id int(11) NOT NULL auto_increment,
import_feed_id int(11) NOT NULL default '0',
import_event_id int(11) NOT NULL default '0',
import_guid varchar(255) NOT NULL default '0',
PRIMARY KEY (import_id),
KEY import_feed_id (import_feed_id),
KEY import_event_id (import_event_id),
KEY import_guid (import_guid)
);";
/* Upgrade calendar events... */
$SQL[] = "RENAME TABLE cal_events TO cal_events_bak;";
$SQL[] = "CREATE TABLE cal_events (
event_id int(10) unsigned NOT NULL auto_increment,
event_calendar_id int(10) unsigned NOT NULL default '0',
event_member_id mediumint(8) unsigned NOT NULL default '0',
event_content mediumtext,
event_title varchar(255) NOT NULL default '',
event_smilies tinyint(1) NOT NULL default '0',
event_comments int NOT NULL default '0',
event_rsvp tinyint(1) NOT NULL default '0',
event_perms text,
event_private tinyint(1) NOT NULL default '0',
event_approved tinyint(1) NOT NULL default '0',
event_saved int(10) unsigned NOT NULL default '0',
event_lastupdated int(10) unsigned NOT NULL default '0',
event_recurring int(2) unsigned NOT NULL default '0',
event_start_date datetime NOT NULL,
event_end_date datetime default NULL,
event_title_seo VARCHAR( 255 ) NULL DEFAULT NULL,
event_rating_total INT NOT NULL DEFAULT '0',
event_rating_hits INT NOT NULL DEFAULT '0',
event_rating_avg INT NOT NULL DEFAULT '0',
event_attachments INT NOT NULL DEFAULT '0',
event_post_key VARCHAR( 32 ) NULL DEFAULT NULL,
event_comments_pending INT NOT NULL DEFAULT '0',
event_sequence INT NOT NULL DEFAULT '0',
PRIMARY KEY (event_id),
KEY approved (event_calendar_id , event_approved , event_start_date , event_end_date),
KEY event_member_id (event_member_id, event_approved, event_private, event_lastupdated)
);";
$SQL[] = "INSERT INTO cal_events SELECT event_id, event_calendar_id, event_member_id, event_content, event_title, event_smilies, 0, 0, event_perms, event_private, event_approved, event_unixstamp, event_unixstamp,
event_recurring, FROM_UNIXTIME(event_unix_from), CASE WHEN event_unix_to > 0 THEN FROM_UNIXTIME(event_unix_to) ELSE NULL END, '', 0, 0, 0, 0, MD5( CONCAT( event_id, event_title ) ), 0, 1 FROM {$PRE}cal_events_bak;";
$SQL[] = "DROP TABLE cal_events_bak;";
/* Add fulltext indexes, if appropriate */
if( $DB->checkFulltextSupport() )
{
$SQL[] = "ALTER TABLE cal_events ADD FULLTEXT (event_content);";
$SQL[] = "ALTER TABLE cal_events ADD FULLTEXT (event_title);";
}
@@ -0,0 +1,137 @@
<?php
/*
+--------------------------------------------------------------------------
| IP.Board v3.4.5
| ========================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
*/
if ( ! defined( 'IN_IPB' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
exit();
}
class version_upgrade
{
/**
* Custom HTML to show
*
* @var string
*/
protected $_output = '';
/**
* fetchs output
*
* @return string
*/
public function fetchOutput()
{
return $this->_output;
}
/**
* Execute selected method
*
* @param object Registry object
* @return @e void
*/
public function doExecute( ipsRegistry $registry )
{
/* Make object */
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
//--------------------------------
// What are we doing?
//--------------------------------
switch( $this->request['workact'] )
{
default:
case 'fixtitles':
$this->fixSeoTitles();
break;
}
/* Workact is set in the function, so if it has not been set, then we're done. The last function should unset it. */
if ( $this->request['workact'] )
{
return false;
}
else
{
return true;
}
}
/**
* Set the SEO titles
*
* @param int
* @return @e void
*/
public function fixSeoTitles()
{
/* Init */
$st = intval($this->request['st']);
$did = 0;
$each = 200;
/* If this is the first pass, do the cal_calendars table too */
if( !$st )
{
$this->DB->build( array( 'select' => 'cal_id, cal_title', 'from' => 'cal_calendars' ) );
$outer = $this->DB->execute();
while( $r = $this->DB->fetch($outer) )
{
$this->DB->update( 'cal_calendars', array( 'cal_title_seo' => IPSText::makeSeoTitle( $r['cal_title'] ) ), 'cal_id=' . $r['cal_id'] );
}
$this->registry->output->addMessage( 'Calendar FURL titles rebuilt' );
}
/* Build event FURL titles */
$this->DB->build( array( 'select' => 'event_id, event_title', 'from' => 'cal_events', 'order' => 'event_id ASC', 'limit' => array( $st, $each ) ) );
$outer = $this->DB->execute();
while( $r = $this->DB->fetch($outer) )
{
$did++;
$this->DB->update( 'cal_events', array( 'event_title_seo' => IPSText::makeSeoTitle( $r['event_title'] ) ), 'event_id=' . $r['event_id'] );
}
/* Show message and redirect */
if( $did > 0 )
{
$this->request['st'] = $st + $did;
$this->request['workact'] = 'fixtitles';
$this->registry->output->addMessage( "Up to {$this->request['st']} event FURL titles rebuilt so far..." );
}
else
{
$this->request['st'] = 0;
$this->request['workact'] = '';
$this->registry->output->addMessage( "All event FURL titles rebuilt..." );
}
/* Next Page */
return;
}
}
@@ -0,0 +1,10 @@
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com/">IP.Board</a>
</body>
</html>
@@ -0,0 +1,17 @@
<?php
/*
+--------------------------------------------------------------------------
| IP.Board v3.4.5
| ========================================
| by Matthew Mecham
| (c) 2001 - 2009 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
*/
$SQL[] = "ALTER TABLE cal_events ADD event_all_day TINYINT NOT NULL DEFAULT '0';";
$SQL[] = "UPDATE cal_events SET event_all_day=1 WHERE TIME(event_start_date) = '00:00:00';";
@@ -0,0 +1,10 @@
<html>
<head><title>IP.Board - Bulletin Board System</title></head>
<body>
<h1>403: IP.Board -&gt; Forbidden</h1>
<hr>
You have reached this page in error, please use your back button to return to the forum.
<hr>
<a href="http://www.invisionpower.com/">IP.Board</a>
</body>
</html>
@@ -0,0 +1,127 @@
<?php
/*
+--------------------------------------------------------------------------
| IP.Board v3.4.5
| ========================================
| by Matthew Mecham
| (c) 2001 - 2004 Invision Power Services
| http://www.invisionpower.com
| ========================================
| Web: http://www.invisionboard.com
| Email: matt@invisionpower.com
| Licence Info: http://www.invisionboard.com/?license
+---------------------------------------------------------------------------
*/
if ( ! defined( 'IN_IPB' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
exit();
}
class version_upgrade
{
/**
* Custom HTML to show
*
* @var string
*/
protected $_output = '';
/**
* fetchs output
*
* @return string
*/
public function fetchOutput()
{
return $this->_output;
}
/**
* Execute selected method
*
* @param object Registry object
* @return @e void
*/
public function doExecute( ipsRegistry $registry )
{
/* Make object */
$this->registry = $registry;
$this->DB = $this->registry->DB();
$this->settings =& $this->registry->fetchSettings();
$this->request =& $this->registry->fetchRequest();
$this->cache = $this->registry->cache();
$this->caches =& $this->registry->cache()->fetchCaches();
//--------------------------------
// What are we doing?
//--------------------------------
switch( $this->request['workact'] )
{
default:
case 'minicaldel':
$this->removeMinicalCaches();
break;
}
/* Workact is set in the function, so if it has not been set, then we're done. The last function should unset it. */
if ( $this->request['workact'] )
{
return false;
}
else
{
return true;
}
}
/**
* Remove excessive minical caches from earlier versions
*
* @return @e void
*/
public function removeMinicalCaches()
{
/* Init */
$st = intval($this->request['st']);
$did = 0;
$each = 500;
/* Grab the minicals */
$this->DB->build( array( 'select' => '*', 'from' => 'cache_store', 'where' => "cs_key LIKE 'minical_%'", 'limit' => array( $st, $each ) ) );
$outer = $this->DB->execute();
while( $r = $this->DB->fetch($outer) )
{
$did++;
$caches[] = $r['cs_key'];
}
if( count($caches) )
{
$this->cache->deleteCache( $caches );
}
/* Show message and redirect */
if( $did > 0 )
{
$this->request['st'] = $st + $did;
$this->request['workact'] = 'minicaldel';
$this->registry->output->addMessage( "Up to {$this->request['st']} minical caches removed so far..." );
}
else
{
$this->request['st'] = 0;
$this->request['workact'] = '';
$this->registry->output->addMessage( "All minical caches removed..." );
}
/* Next Page */
return;
}
}