Commit Graph

121 Commits

Author SHA1 Message Date
Zach Copley
94466da35a Got rid of a bunch of ugly warnings 2009-09-15 16:31:09 -07:00
Brenda Wallace
5ca90e2c8c pulled @author from git logs
Conflicts:

	install.php
2009-09-14 19:19:11 +12:00
Brenda Wallace
dbc08ef0a0 most of code style errors gone
Conflicts:

	install.php
2009-09-14 19:08:05 +12:00
Brenda Wallace
93605dce99 removed commented out code we no longer want 2009-09-14 19:06:53 +12:00
Brenda Wallace
f5b7ea7396 fixed up curly brackets and spaces around for, if, else 2009-09-14 19:06:39 +12:00
Brenda Wallace
36aa89d695 many doxygen comments added 2009-09-14 19:06:28 +12:00
Brenda Wallace
61d5d51cf5 lotsa tabulation changed to 4 spaces 2009-09-14 19:06:09 +12:00
Brenda Wallace
367ed28efa fixed missing semisolon 2009-09-14 19:05:32 +12:00
Brenda Wallace
20764dc08b removed most of the <?php ?> that was making this hard to read
Conflicts:

	install.php
2009-09-14 19:05:14 +12:00
Brenda Wallace
c2e156dc49 added doxygen for main() 2009-09-14 19:00:43 +12:00
Brenda Wallace
711fe39700 changed curly bracks on if, else, foreach to match pear code styles 2009-09-14 19:00:30 +12:00
Brenda Wallace
222ef4d186 added doxygen tags 2009-09-14 18:50:47 +12:00
Brion Vibber
4181c6f04a bug 1814: installer now only offers DB types which are available.
Abstracted a couple of hardcoded lists of mysql/pgsql checks and radio button creation to use a nice little array of names, installer funcs, and modules to check.
Only those DB types whose modules are present will be presented in the installer; if all are missing, we throw an error and list out all the possibilities we were looking for.
2009-09-14 18:06:48 +12:00
Brion Vibber
c93072ed86 Avoid or suppress E_NOTICE and E_WARNING messages related to the checklibs checks.
* notice on main installer form checking for $_GET['checklibs']
* notices when seeing which module checks to run
* warnings when attempting to load include files
2009-09-13 21:56:06 -04:00
Brion Vibber
fe9473ac78 Check that 'dl' function is available and usable before trying to call it with error suppression; if it's disabled or unavailable we end up with mysterious failures during installation or loading of libraries.
Fixed for StatusNet installer as well as some external libraries that should be fixed upstream if they haven't already been:
* PEAR
* Auth/OpenID
* Auth/Yadis
2009-09-13 21:53:30 -04:00
Craig Andrews
a535ccdc4e Merge remote branch 'laconica/0.8.x' into 0.9.x
Conflicts:
	lib/common.php
	lib/twitter.php
2009-09-02 16:42:15 -04:00
Craig Andrews
0ae4c7a80c The 'tidy' extension is a requirement
Fixes http://status.net/trac/ticket/1844
2009-09-02 13:33:54 -04:00
Brenda Wallace
53ec4223e4 fix for postgres - was using a non-existent variable to work out if should write quote_identifiers=true 2009-08-28 21:04:15 +12:00
Evan Prodromou
a08c76a434 Merge branch '0.9.x' of git@gitorious.org:laconica/mainline into 0.9.x
Conflicts:
	classes/laconica.ini
2009-08-27 14:52:32 -07:00
Evan Prodromou
bbb830e14c Merge branch '0.8.x' of git@gitorious.org:laconica/mainline into 0.8.x 2009-08-27 14:18:51 -07:00
Evan Prodromou
5d09b6b3f0 Merge branch '0.8.x' into 0.9.x
Conflicts:
	EVENTS.txt
	actions/finishremotesubscribe.php
	actions/postnotice.php
	actions/public.php
	actions/remotesubscribe.php
	actions/showstream.php
	actions/updateprofile.php
	actions/userauthorization.php
	classes/laconica.ini
	lib/common.php
	lib/oauthstore.php
	lib/omb.php
2009-08-27 11:16:45 -07:00
Evan Prodromou
dcda2e1f72 show SQL errors in the output 2009-08-27 08:58:03 -07:00
Evan Prodromou
2371fe9092 don't show a warning when dl() disabled 2009-08-27 08:45:53 -07:00
Evan Prodromou
f1fda6c050 Merge branch '0.8.x' into 0.9.x 2009-08-27 07:56:19 -07:00
Craig Andrews
3e362233ee Merge commit 'laconica/0.8.x' into 0.9.x 2009-08-26 21:56:59 -04:00
Craig Andrews
0b884ed915 Add library checking page 2009-08-26 19:08:30 -04:00
Evan Prodromou
df86aa7214 define LACONICA and accept LACONICA for backwards compatibility 2009-08-26 10:41:36 -04:00
Evan Prodromou
3567b9d708 global search and replace for laconica -> statusnet 2009-08-25 18:53:24 -04:00
Evan Prodromou
865b716f09 change LACONICA to STATUSNET 2009-08-25 18:42:34 -04:00
Evan Prodromou
4737563b95 a distributed -> the distributed 2009-08-25 18:14:12 -04:00
Evan Prodromou
c8b8f07af1 change Laconica and Control Yourself to StatusNet in PHP files 2009-08-25 18:12:20 -04:00
Brion Vibber
5c21a371d6 Include php-gettext 1.0.7 into extlibs; loading it up if native gettext extension is not present.
This provides a pure PHP implementation of the gettext functions.

This should help get laconica running on shared hosting environments where PHP's gettext module may not be installed.
Also gets us one step closer to running on Mac OS X 10.5 with Apple's preinstalled PHP, which doesn't provide an easy way to add modules.

Source: http://savannah.nongnu.org/projects/php-gettext
Copyright (c) 2005 Steven Armstrong <sa at c-area dot ch>
GPLv2 or later
2009-08-21 16:01:51 -04:00
Evan Prodromou
b2664e1ae2 Merge branch '0.8.x' into 0.9.x
Conflicts:
	actions/updateprofile.php
	actions/userauthorization.php
	classes/User_group.php
	index.php
	install.php
	lib/accountsettingsaction.php
	lib/logingroupnav.php
2009-08-21 15:42:11 -04:00
Brett Taylor
04c6272915 fix for trac bug #1805:
bug on line 381 referred to non existant variable, and caused a php notice and potentially would create a misconfigured config.php database type setting.
2009-08-11 15:30:03 +12:00
Brett Taylor
b0bb1fff2e install.php: improved support for running Laconica in a sub folder and on a non-standard port,
tidyed up configuration file generation, removing duplication from db functions,
2009-08-11 14:53:03 +12:00
Brett Taylor
49eb6009a5 install.php: improved support for running Laconica in a sub folder and on a non-standard port,
tidyed up configuration file generation, removing duplication from db functions,
2009-08-06 22:33:37 -04:00
Craig Andrews
95ba22c5d7 Switch DOCTYPE's to the XHTML 5 DOCTYPE 2009-08-05 18:27:27 -04:00
Tom Adams
4e9db95bcf Use <?php echo instead of <?print 2009-08-04 01:24:25 +01:00
Tom Adams
605742f039 Pass $fancy to *_db_installer. 2009-07-29 16:54:29 -04:00
Tom Adams
3350770cc7 Use <?php not <?. 2009-07-29 16:54:13 -04:00
Craig Andrews
f86faaf341 If cannot connect, then stop the installation 2009-07-25 00:19:12 -04:00
Brenda Wallace
70cc09a5c2 check the postgresql database is UTF8 before allowing installation to proceed 2009-07-25 00:15:35 -04:00
Craig Andrews
22466530ef Fixed: The installer checks if the avatar and background directories are writable, but fails to check the file directory used for attachments.
Thanks brion

http://laconi.ca/trac/ticket/1703
2009-07-21 13:59:34 -04:00
CiaranG
6b7fa65ca1 Merge commit 'br3nda/0.8.x-pginstaller' into 0.8.x 2009-07-19 08:08:39 +01:00
Craig Andrews
8894f957cd Require PHP 5.2.3 or later.
http://laconi.ca/trac/ticket/1605
2009-07-17 17:54:37 -04:00
Brenda Wallace
d591e24eac typo in config variable
and pass type='pgsql' in to writeConf
2009-07-15 20:16:37 +12:00
Brenda Wallace
1b3c4f2c52 quote identifiers and type='psql' needs to be written to config.php 2009-07-15 20:09:29 +12:00
Brenda Wallace
4f9c3b50e7 install.php works for postgres 2009-07-15 18:46:34 +12:00
Brenda Wallace
343e2010ae connect to pg working 2009-07-15 18:45:45 +12:00
Brenda Wallace
3fe182e865 added dbtype detection - and only install mysql stuff if mysql selected 2009-07-15 18:45:26 +12:00
Brenda Wallace
ac7d8163c6 added dbtype to the installer form 2009-07-15 18:44:55 +12:00
Brenda Wallace
4d42bc7690 missing word (find) added 2009-07-15 18:44:33 +12:00
Brenda Wallace
8f1b1ffcf0 mysql or pgsql required (not mysql) 2009-07-15 18:43:58 +12:00
Brenda Wallace
3a3614fc55 also check for write permission to background folder 2009-06-26 22:42:52 +12:00
Evan Prodromou
793a6a1155 change Controlez-Vous to Control Yourself 2009-06-20 16:00:04 -07:00
Evan Prodromou
5d3e47e501 remove path from install; better autodetection now 2009-06-18 16:21:03 -07:00
Robin Millette
01ce677ae3 Small bugfix to installer fixing fancy URL detection. 2009-05-25 16:49:32 +00:00
Sarven Capadisli
456f3eeb50 Removed unnecessary link to base stylesheet because default stylesheet calls base in 0.8.x 2009-05-22 16:38:06 +00:00
Eric Helgeson
a3280961d2 Removed return from 1st line of runDbScript()
fixed broken html tag on success page.
handlePost() now will show as many errors as it can (instead of one at a time)
checkPrereqs() will show all errors at once instead of failing on first one, installer will be able to try to fix all instead of fixing one at a time and trying again.
writeConf(): added if LACONICA is !defined exit

Tests: drop database and remove config.php, ran installer. Passed.
2009-05-20 16:39:08 -05:00
Eric Helgeson
dbf82f7c1e fixed missing closing php tag when installer.php wrote to config.php 2009-05-20 15:14:04 -05:00
Robin Millette
f3ea79a12a Added site path field to installer + fancy URL javascript auto-detection. 2009-05-17 00:05:07 -04:00
Sarven Capadisli
fb8340fb54 Added laconica logo
Updated installation page markup
2009-05-01 03:50:24 +00:00
Adrian Lang
e876b74e8b Add license notice to install.php, replace short and asp style tags by more portable long tag form. 2009-04-15 08:38:05 +02:00
Evan Prodromou
aa1bc6216e Make a loop instead of repeating almost identical text in install 2009-03-04 05:53:04 -08:00
Evan Prodromou
8d05768e2c run foreign services script 2009-03-04 05:47:37 -08:00
Evan Prodromou
07efccd7ef add notice source data on install 2009-03-04 05:44:29 -08:00
Evan Prodromou
6070d98aa6 check posted parameters 2009-03-04 05:42:06 -08:00
Evan Prodromou
18f7749995 run sms carrier script on install 2009-03-04 05:42:03 -08:00
Evan Prodromou
458c037867 check some prereqs for installation 2009-02-28 21:01:33 -08:00
Evan Prodromou
2ad667f704 first pass at a working install.php 2009-02-28 20:33:22 -08:00
Evan Prodromou
c77bb62f2d show a form for installation 2009-02-28 17:42:27 -08:00