Commit graph

2698 commits

Author SHA1 Message Date
Michael Vogel
adc720a7fc
Merge pull request #3938 from MrPetovan/task/3878-mov-HTTPExceptions-to-src
Move HTTPExceptions to src
2017-11-24 09:44:44 +01:00
Michael
4a4be4d664 Fix some SQL problems 2017-11-24 07:44:02 +00:00
Hypolite Petovan
365850f26a Fix httpdesc to work with new namespace 2017-11-23 23:47:52 -05:00
Hypolite Petovan
b41bf77ec8 Add HTTPException class files 2017-11-23 23:40:54 -05:00
Michael Vogel
4032ad3418
Merge pull request #3935 from MrPetovan/task/3878-move-ExAuth-to-src
Move ExAuth class to src
2017-11-24 05:40:06 +01:00
Hypolite Petovan
fd8b9deaaf
Merge pull request #3934 from zeroadam/Contact
Second Contact
2017-11-23 21:01:02 -05:00
Adam Magness
9df0457340 whitespace
remove whitespace
2017-11-23 20:59:00 -05:00
Hypolite Petovan
40c37d76fe Don't cache the xmpp/password PConfig value 2017-11-23 20:34:35 -05:00
Adam Magness
130e02ddef Review
null_date and spaces at end of line
2017-11-23 19:22:30 -05:00
Adam Magness
609a4de5d0 src Standards
This basically completes coding standards changes for the entire src directory, with the exception of App.php
2017-11-23 14:01:58 -05:00
Hypolite Petovan
d5887f9f9a Add use dba 2017-11-23 10:23:16 -05:00
Hypolite Petovan
93924ceac4 Move ExAuth class to src
- Move executed code to separate readStdin function
2017-11-23 09:46:04 -05:00
Adam Magness
6ea8b0441b More Review
put back some q( calls and change some integer to boolean
2017-11-23 08:15:38 -05:00
Adam Magness
9409010d2d Review dba updates
updates based on review comments.
2017-11-22 23:32:24 -05:00
Adam Magness
f5d682fe0a Review updates
Updates based on review.
2017-11-22 23:13:12 -05:00
Adam Magness
c25578a2e2 Cleanup
Clean up messy commits.
2017-11-22 16:29:47 -05:00
Adam Magness
a8b6052c5a Contact Standards
Some updates for Contact
2017-11-22 09:02:55 -05:00
Michael
87660ac9e6 /src is now free from old style delete queries 2017-11-22 09:14:42 +00:00
Michael
7c3fd2adb5 Some more replaced old database functions 2017-11-22 07:21:19 +00:00
Michael
d982c68d75 Cache.php is now using dba methods 2017-11-21 23:03:33 +00:00
Adam Magness
7cee150868 ForumManager to src
ForumManager moved to Friendica\Content namespace
2017-11-21 07:20:22 -05:00
Hypolite Petovan
2d6ee38446
Merge pull request #3925 from zeroadam/Emailer-#3878
Emailer to src
2017-11-20 23:53:21 -05:00
Hypolite Petovan
317d51fd53
Merge pull request #3926 from annando/worker-correction
Queue and GProbe should now be executed
2017-11-20 16:35:39 -05:00
Michael
0877cf862c Queue and GProbe should now be executed 2017-11-20 21:30:57 +00:00
Adam Magness
1726ededac Emailer to src
Move emailer to src Friendica\Util namespace
2017-11-20 15:37:30 -05:00
Adam Magness
2830be25ea Formatting change
change multi line format.
2017-11-20 15:17:20 -05:00
Adam Magness
ddacbf2c13 XML class standards
updated the xml class for PSR-2
2017-11-20 12:56:31 -05:00
Adam Magness
28cceda461 Indentation
modified to multi line function call.
2017-11-20 11:29:55 -05:00
Adam Magness
1eb2e541f6 New from rebase
more adjustments after rebase
2017-11-20 11:14:35 -05:00
Adam Magness
9622dedaeb New function
new function from recent develop branch merge
2017-11-20 11:01:32 -05:00
Adam Magness
1115d19f79 More Standards
More coding standards updates.
2017-11-20 11:01:32 -05:00
Hypolite Petovan
b85c94a60d
Merge branch 'develop' into issue/3878-move-Contact-to-src 2017-11-19 18:09:14 -05:00
Hypolite Petovan
81647cefed
Merge pull request #3920 from annando/scripts
The poller is now the worker and we have a "scripts" folder
2017-11-19 17:25:14 -05:00
Hypolite Petovan
898fe2db1e Code cleanup
- Remove extraneous use statements
- Format require_once
2017-11-19 17:06:18 -05:00
Hypolite Petovan
5ee728972e Remove include/Contact.php
- Remove all mentions to include/Contact.php
2017-11-19 17:05:21 -05:00
Hypolite Petovan
ec02af593d Change called method names
- Add GlobalContact::getRandomUrl
- Rename Contact::getIdForURL
- Rename Diaspora::sendUnshare
- Remove unused parameter $self in Contact::terminateFriendship
2017-11-19 17:03:39 -05:00
Hypolite Petovan
b92fc24ff0 Add Contact Object
- Add Profile Object
- Add User Model
- Add use statements
2017-11-19 16:55:28 -05:00
Hypolite Petovan
f43aaf5227 Move Item and Conversation from Core to Object
- Move BaseObject from Core\ to Friendica\
2017-11-19 16:50:49 -05:00
Michael
920160cb28 The poller is now the worker 2017-11-19 21:47:21 +00:00
Michael
cabfcfc904 We now are having a "scripts" folder 2017-11-19 21:21:54 +00:00
Adam Magness
8057afb039 Function call
this one must be coming from boot.php
2017-11-19 15:32:54 -05:00
Adam Magness
d9e9cbe753 Coding Standards
A few updates for coding standards
2017-11-19 15:32:54 -05:00
Michael
183999ee08 No german compound wording :-) 2017-11-19 19:47:04 +00:00
Michael
8cd21269ff The last of the big workers moved ... delivery and notifier 2017-11-19 18:59:55 +00:00
Michael
5108115fc1 Now PubSubPublish moved as well 2017-11-19 17:36:20 +00:00
Michael
2de457489f "CreateShadowentry" and "ProfileUpdate" now moved as well 2017-11-19 16:59:37 +00:00
Michael
98686e9091 Queue.php is now moved as well 2017-11-19 16:35:45 +00:00
Michael
501514bd54 expire and gprobe now moved as well 2017-11-19 16:25:13 +00:00
Hypolite Petovan
104a1d7fd3 Move ITemplateEngine to src
- Fix method name format
2017-11-19 10:22:18 -05:00
Michael
9832ac7dab Always show dislikes - the setting now just hides the button 2017-11-19 09:55:45 +00:00
Michael
3616ff886e Corrected class name 2017-11-19 00:14:20 +00:00
Michael
02e4cf2a02 Missing variable 2017-11-18 23:46:16 +00:00
Michael
1f28cbd2c6 And now DiscoverPoCo.php 2017-11-18 11:02:46 +00:00
Michael
925d2d2383 Directory moved 2017-11-18 07:59:30 +00:00
Michael
2515d02e6d SpoolPost moved 2017-11-18 07:44:38 +00:00
Michael
28315ee9dd Missing namespace 2017-11-18 07:33:44 +00:00
Michael
13f899542d dbupdate now moved as well 2017-11-18 07:31:33 +00:00
Michael
04cc9bb4de CronJobs moved as well 2017-11-18 06:22:41 +00:00
Michael
f2e792662f DBClean moved as well 2017-11-18 05:45:44 +00:00
Michael
911093580b Missing dba 2017-11-18 05:12:57 +00:00
Michael
3687ef2f8c Another worker process moved 2017-11-17 22:16:34 +00:00
Adam Magness
0cbc4153b3 More conditions
Removed unneeded conditions.
2017-11-16 19:59:40 -05:00
Adam Magness
72749477ed Remove condition
Remove unneeded condition.
2017-11-16 19:55:28 -05:00
Adam Magness
f96b841799 Update function call
missed function call change
2017-11-16 16:39:42 -05:00
Adam Magness
d127d06388 Item to src
object/Item moved to Friendica\Core namespace.
2017-11-16 16:39:42 -05:00
Adam Magness
7c00401c66 Conversation to src
object/Conversation moved to Friendica\Core namespace.
2017-11-16 16:39:42 -05:00
Adam Magness
ecd9e3e07e BaseObject moved to src/Core
BaseObject moved to Friendica\Core namespace. References and function calls updated.
2017-11-16 16:39:42 -05:00
Adam Magness
cd12de46f8 OStatus moved to src
OStatus moved to Friendica\Protocol namespace. References and function calls updated.
Related to #3878
2017-11-15 23:09:11 -05:00
Michael
0aee6d383a Now there are four more ... 2017-11-15 21:12:33 +00:00
Michael
33e98d6264 Moved some workers in their new habitat 2017-11-15 20:59:42 +00:00
Adam Magness
9e90589c21 gsFunctions renamed
gsFetchUsers -> fetchGsUsers
gsDiscover -> discoverGsUsers
2017-11-15 12:02:08 -05:00
Adam Magness
326c4a18c0 Missing Worker
use Friendica\Core\Worker
2017-11-15 11:51:29 -05:00
Adam Magness
790d80c9fb Missed function call update
update_gcontact -> update
2017-11-15 11:49:20 -05:00
Adam Magness
259f91caa9 PortableContact created
Create PortableContact and remove socgraph, update references, and calls
2017-11-15 10:53:16 -05:00
Adam Magness
47db624105 GlobalContact created
Moved DirSearch and GlobalContact related functions to Friendica\Model namespace
2017-11-15 09:47:49 -05:00
Michael
9576f6743d Command back ... 2017-11-14 22:13:33 +00:00
Michael
405753d1c3 cron.php is reworked, other worker files had been moved temporarily 2017-11-14 21:50:16 +00:00
Michael
42a89b101b CronHooks now works again. 2017-11-12 21:32:10 +00:00
Michael
476facde61 Onepoll moved as well 2017-11-12 18:50:35 +00:00
Michael
521e213e7a I will never understand git ... 2017-11-12 07:26:04 +00:00
Michael
1aa8f56662 The cronhooks are now changed 2017-11-12 07:24:49 +00:00
Michael
06ce34eda1 The worker can now call methods in the worker namespace 2017-11-12 07:21:23 +00:00
Adam Magness
4d146acf90 Smilies to src
Move Smilies to Friendica\Content namespace.

Related to #3878
2017-11-11 07:21:15 -05:00
Adam Magness
bc49fc974c Capitalized XML
Acronym classes should be capitalized
2017-11-10 07:45:33 -05:00
Adam Magness
0226aa1f15 Spelling
spelling correction for simplexmlelement
2017-11-10 07:18:24 -05:00
Adam Magness
d49da294b3 Add uses
added DomXPath and SimpleXMLElement
2017-11-10 07:18:24 -05:00
Adam Magness
f245bc8359 Move xml to namespace
Relocate xml from include to src
Related to #3878
2017-11-10 07:18:24 -05:00
Adam Magness
06c3af9b60 Move Cache to src
relocate the cache class to Friendica\Core namespace
2017-11-09 11:05:18 -05:00
Hypolite Petovan
a49901eaa2 Fix missing Crypto class error 2017-11-09 03:47:12 -05:00
Hypolite Petovan
ee5b9de6ad Reverting RINO crypto code to php-encryption version 1.2 2017-11-09 03:20:18 -05:00
Hypolite Petovan
d5aff9ac31 Fix php-encryption version 2 compatibility issues 2017-11-09 02:35:11 -05:00
Hypolite Petovan
acd65aade1 Switch to new php-encryption library version
- Remove references to library/ files
- Add namespace to library classes
2017-11-09 02:21:37 -05:00
Adam Magness
cfd8ae389c Review updates
changes based on review comments.
2017-11-08 20:08:42 -05:00
Adam Magness
d7dc51ecc1 Coding Standards
Guess who got phpcs configured.
Updated phpcs.xml based on Developer_Intro document.
2017-11-08 17:02:50 -05:00
Adam Magness
ca5d5acb7e Another use
use Cache
2017-11-08 08:51:01 -05:00
Adam Magness
a307991ee5 Use more
More use statements based on error logs.
2017-11-08 08:37:03 -05:00
Adam Magness
d857473026 Use Statements
More use statements based on error logs
2017-11-08 08:37:03 -05:00
Adam Magness
3581889fbd DFRN Update
missing use statement
2017-11-08 08:37:03 -05:00
Adam Magness
4ca68c7af0 Class file relocations
Issue #3878
2017-11-08 08:37:03 -05:00
Adam Magness
6189f6c8e7 Relocate class files from /include to /src/
dbm, Diaspora, dfrn, and NotificationsManager moved to namespace. Includes and references in files updated.
2017-11-08 08:36:48 -05:00
Michael
5a6fa4ae87 Some more 2017-11-07 21:53:11 +00:00
Adam Magness
1a83b80dbd Review Updates
Reverted changes made to .sql file and Errant use statement in Probe class.
2017-11-07 06:43:34 -05:00
Adam Magness
0dfa57948f Issue-#3873
Replace deprecated functions with new syntax.
2017-11-07 06:24:39 -05:00
Michael
28701a8df3 Some small correction 2017-11-06 15:38:15 +00:00
Michael
4ebb76e5a6 Changed explanation 2017-11-06 15:32:34 +00:00
Michael
930309d2ec Merge remote-tracking branch 'upstream/develop' into worker-class 2017-11-05 17:23:53 +00:00
Michael
84c3c0753e Now we use only dba functions 2017-11-05 17:13:37 +00:00
Michael
70c08dee1d Some more improvements 2017-11-05 15:28:55 +00:00
Hypolite Petovan
cff1de034f Remove reference to languagedetect in library folder 2017-11-05 09:00:34 -05:00
Michael
478e363967 proc_run was replaced 2017-11-05 12:15:53 +00:00
Michael
da212a28a2 New worker class that does all the work 2017-11-05 10:33:46 +00:00
Michael
e2224a2ddc Some Webfinger clean up 2017-10-28 11:48:29 +00:00
Michael
0b7e8b7fb4 Hubzilla doesn't return the handle in the hcard 2017-10-27 06:17:24 +00:00
Michael
c309c8bde4 Improve the way the callstack is built 2017-10-17 20:51:46 +00:00
Michael
1506886947 Bugfix: Range checking with ParseUrl made problems - we now use the standard 2017-10-15 19:29:58 +00:00
Michael
7b833834f9 Avoid basepath problems 2017-10-11 18:21:10 +00:00
Tobias Diekershoff
071946fa78 Revert "Update languagedetect library" 2017-10-05 11:58:18 +02:00
Tobias Diekershoff
c22920edba Merge pull request #3743 from MrPetovan/task/update-languagedetect
Update languagedetect library
2017-10-05 08:49:17 +00:00
Michael
42a8f27034 Semaphore lock deactivated for PHP lower 5.6.1 2017-09-30 07:51:09 +00:00
Hypolite Petovan
ba1975ac3a Remove references to the library/langdet folder 2017-09-27 22:40:58 -04:00
Michael
d72e6b2c82 Bugfix for better mail import 2017-09-23 22:53:44 +00:00
Michael
78d4386332 We are now probing differently for webfinger data 2017-09-04 19:13:33 +00:00
Michael
1cc50a80f4 Only update if there is a change 2017-08-30 19:33:16 +00:00
Michael
0083c16e87 Better updating of contacts 2017-08-30 18:05:41 +00:00
Michael
4bc2076763 Avoid warnings from probe 2017-08-29 04:51:02 +00:00
Michael
a729519de9 And some more static warnings removed 2017-08-26 10:01:50 +00:00
Michael
5adfeb0bd5 App::get_baseurl is now replaced with System::baseUrl 2017-08-26 07:32:10 +00:00
Michael
3c24bed412 New class "System" 2017-08-26 06:04:21 +00:00
Michael
c09c806f78 Probing sometimes failed / problems with some web servers 2017-08-24 07:56:46 +00:00
Michael
51dca9b034 Compatibility with pleroma added 2017-08-21 20:21:04 +00:00
Michael
6c9953809a Improved position of "close" 2017-08-15 10:10:09 +00:00
Michael
b14b44e8a8 Merge remote-tracking branch 'upstream/develop' into dba-2 2017-08-12 07:37:06 +00:00
Michael
7052da745c Issue 3615: Probing sometimes returned an empty "addr" field 2017-08-11 21:50:46 +00:00
Michael
99f0c01cdd Some more changed queries 2017-08-11 16:21:55 +00:00
Michael
33b61ab262 Database connections should be closed 2017-08-10 06:33:24 +00:00
Michael
f1a57dd9c6 Avoid an error 2017-08-09 23:08:25 +00:00
Michael
03b86d3766 Now we have less than 100 insert commands, yeah 2017-08-09 23:02:57 +00:00
Michael
69a3f66d56 Just more simplyfication 2017-08-09 21:34:39 +00:00
Michael
fce72cbbc8 Modifed "update" and "insert" function / many changed queries 2017-08-09 21:12:41 +00:00
Michael
a5e7f7bf70 We don't need an order. 2017-08-09 07:57:33 +00:00
Michael
64718b53d1 Works now 2017-08-09 06:16:19 +00:00
Michael
ae8098eaf2 Config now works with the new database routines 2017-08-09 05:53:07 +00:00
rabuzarus
28eb5d57a7 fix some method names (camelcase) in Probe.php and Lock.php 2017-08-02 13:09:42 +02:00
Michael
955229e131 Fix incomplete webfinger data for OStatus 2017-07-25 21:46:14 +00:00
Michael
79fe249c54 Better use a wrapper 2017-07-22 06:43:04 +00:00
Michael
41ec057813 Avoid "Invalid argument" warning in probing. 2017-07-11 17:34:38 +00:00
Michael
363322ba78 Issue 3571 and Diaspora mail bugfix 2017-07-10 22:35:32 +00:00
Alexandre Alapetite
080da4777d Use unset after unlock
https://github.com/friendica/friendica/pull/3554#issuecomment-313741392
2017-07-08 11:03:41 +02:00
Alexandre Alapetite
84972623f7 Order of semaphore processing 2017-07-07 18:26:43 +02:00
Alexandre Alapetite
329ab7d153 More general check for semaphore 2017-06-28 22:38:22 +02:00
Alexandre Alapetite
4eaa6b94a6 Hide semaphone warning
https://github.com/friendica/friendica/issues/3553
2017-06-28 18:38:18 +02:00
Michael
4515c36f69 Semaphore based locking and hopefully the fix for the workerqueue 2017-06-28 04:53:11 +00:00
Michael
1301a29505 It's faster without locks, gnarl ... 2017-06-12 19:20:50 +00:00
Michael
16df7715b9 Avoid locking problems in lock class 2017-06-12 15:42:54 +00:00
Michael
7d0a7f6be9 We got rid of two workerqueue queries, yeah! 2017-06-11 19:51:18 +00:00
Hypolite Petovan
9c0d2c31e8 Replace AND and OR in PHP conditions by && and || 2017-06-07 22:00:59 -04:00
Michael
9c46971aa5 The check for blocking processes is deactivated until further checks were performed 2017-06-06 22:18:42 +00:00
Michael
e3d5dcf049 Beware of camels 2017-06-06 17:42:47 +00:00
Michael
286b2da7a9 Added documentation and renamed function 2017-06-06 17:25:28 +00:00
Michael
5dfa513b62 Only wait when you have a timout value at all 2017-06-06 04:22:18 +00:00
Michael
2b04865cdb We found the handbrake ... 2017-06-05 22:41:33 +00:00
Michael
b86c4d539e Locking waits now for a shorter period. DB locking is used at other locations as well 2017-06-05 14:59:53 +00:00
Michael
30b24a2908 Locking seems to work great now 2017-06-04 18:59:50 +00:00
Michael
bca5776e9c Lock now can use the memcache as well 2017-06-04 15:59:20 +00:00
Michael
d2cb87a200 Database locks are now having its very own functions 2017-06-04 12:59:29 +00:00
Michael
5de03c1b27 Locks now work - ready to be used in the wild 2017-06-04 08:36:08 +00:00
Michael
32f61016d3 Overhauled "lock" functionality 2017-06-04 07:26:21 +00:00
Michael
21eb9a4b2e Fixed locking behaviour for the worker 2017-06-03 07:25:01 +00:00
Michael
609649557b Better handling of timeout issues while probing 2017-05-31 03:46:43 +00:00
Michael
a32de855cc Don't quit if the own host cannot be reached via SSL 2017-05-29 19:14:44 +00:00
Michael
860887557a Some more logging for the probing 2017-05-28 05:38:12 +00:00
Hypolite Petovan
471056e989 Merge pull request #3488 from annando/ptobr-no-cache
Probing via web frontend shouldn't use the cache.
2017-05-23 17:21:10 -04:00
Michael
07e318e991 some more logging 2017-05-23 20:19:39 +00:00
Michael
c84a2fb1a3 Bugfix ParseUrl: Only fetch a range to avoid memory issues 2017-05-23 05:26:22 +00:00
Hypolite Petovan
06ea23665c Merge pull request #3460 from annando/1705-dbclean
dbclean is now using the new database functions
2017-05-12 11:45:27 -04:00
Michael
6ef24890bb dbclean is now using the new database functions / new functions for commit, rollback and transaction 2017-05-11 20:13:45 +00:00
Hypolite Petovan
39f894bd4a Use use instead of \ 2017-05-11 11:53:04 -04:00
Michael
f6fe11ff49 Small bugfix for PR 3454 2017-05-08 20:01:18 +00:00
rabuzarus
3d5ff8bab3 remove use of PConfig Class from Probe class because we don't use it here 2017-05-08 19:04:01 +02:00
rabuzarus
8a2ffffe71 Bugfix: correct uninitialized variables 2017-05-08 19:02:34 +02:00
rabuzarus
035c79f355 add some spaces for better readability 2017-05-08 18:28:30 +02:00
rabuzarus
8830d20ed0 rename some variables for comprehensibility 2017-05-08 18:07:06 +02:00
rabuzarus
51372bc314 improve readability 2017-05-08 17:36:04 +02:00
rabuzarus
450a4920fd apply coding standard 2017-05-08 17:06:57 +02:00
rabuzarus
cc8a3a4101 rename methods of the Probe class to camelCase 2017-05-08 16:19:10 +02:00
Michael
52a4e09711 Don't check if basepath is writable / convert App.php to unix newlines 2017-05-08 06:11:38 +00:00
Michael
a8caeefb52 And even more global classes ... 2017-05-07 22:21:12 +00:00
Michael Vogel
d9f8fbeb4f Merge pull request #3449 from Hypolite/improvement/move-probe-to-src
Hotfix: Yet more global classes to escape
2017-05-08 00:18:53 +02:00
Hypolite Petovan
f123f6df10 Yet more global classes to escape 2017-05-07 18:12:26 -04:00
Michael Vogel
6680ce1dd7 Merge pull request #3445 from Hypolite/improvement/move-probe-to-src
Move Probe to src
2017-05-07 23:14:22 +02:00
Hypolite Petovan
b4f2fc4e2f Hotfix for missing Exception class 2017-05-07 15:22:11 -04:00
Hypolite Petovan
36e515ee6d Move Probe to src 2017-05-07 14:44:30 -04:00
Hypolite Petovan
569cd459ec Add basepath to App 2017-05-02 23:37:57 -04:00
Hypolite Petovan
3437e73ae4 Yet more standards 2017-05-02 23:37:50 -04:00
Hypolite Petovan
ce866ad39b Remove unrecommended leading backslash for fully qualified namespaces 2017-05-02 23:37:06 -04:00
Hypolite Petovan
4b16de6d80 Fix wrong class name case
- Use leading backslash for non-namespace class names in App
2017-05-02 23:36:46 -04:00
Hypolite Petovan
20043914e6 Move App to src
- Add `use Friendica\App;` wherever needed
2017-05-02 22:59:36 -04:00
Hypolite Petovan
799e60aa62 Replace existing autoloader with Composer-supplied
- Move Friendica namespace to `src`
- Move required `ezyang/htmlpurifier` to vendor
- Remove existing static autoloader
- Change boot.php reference to the autoloader
2017-03-31 23:02:38 -04:00