Commit Graph

51 Commits

Author SHA1 Message Date
Roland Häder e13182d913
Some cleanups:
- "use" should be executed before any other line (except strict mode line)
- "import" App class before use it
- sure braces with "new" operator as this invokes the constructor
2019-01-03 22:54:57 +01:00
Hypolite Petovan 95be3462ac Fix PHP Warning about count()
- Reformat include/Photo.php
2018-07-10 23:56:30 -04:00
Hypolite Petovan 15563be5cc Fix PHP Notices 2018-05-07 22:02:16 -04:00
Hypolite Petovan 9031423278 Prevent infinite push loop between multiple directories
- Add auto increment id to sync-push-queue table to add new profile urls
at the end
- Use REPLACE instead of INSERT to prevent unique key errors
2018-05-07 22:02:16 -04:00
Hypolite Petovan 4de3fcf5f5 Simplify the tag table
- Remove auto increment id
- Replaced nurl by profile id
- Added primary key on the two remaining columns
2018-05-07 22:02:16 -04:00
Hypolite Petovan 95ea839fa7 Add ping stats during probe 2018-05-04 08:22:01 -04:00
Hypolite Petovan ca12f85c92 Fix db error display 2018-05-04 08:11:49 -04:00
Hypolite Petovan 1a608a50ad Actually use variable $addon 2018-02-24 12:21:07 -05:00
Hypolite Petovan 37960dcd38 Add backward compatibility test 2018-02-24 10:57:39 -05:00
Hypolite Petovan a6f6f92a24 Rename plugin to addon 2018-02-24 10:45:54 -05:00
Hypolite Petovan e24172ab05 Fix tag insertion/update
- Delete all tags related to a specific profile on submit
- Add tags only if the profile is available
2018-01-14 22:24:12 -05:00
Hypolite Petovan 522cc7bb17 Fix display issues
- Add baseurl to widgets search links
- Add aside to search page
- Fix number of available profiles in country widgets
2018-01-14 22:22:37 -05:00
Hypolite Petovan 99d182915d Fix invalid sprintf string in submit process 2017-11-01 02:30:09 -04:00
Hypolite Petovan 733894723e Add debug opportunity in q() 2017-11-01 02:29:47 -04:00
Hypolite Petovan be5939e02f Code style cleanup 2017-11-01 02:29:31 -04:00
Hypolite Petovan 163d7d2b4b Add profile availability field
- Add available field to profile table
- Make profile unavailable in directory until update suceeds
2017-10-23 00:34:04 -04:00
Hypolite Petovan ef7551df81 Fix empty $parms check
- $parms always contains the `_timings` key
2017-10-22 23:55:27 -04:00
Hypolite Petovan cdb8670dea Fix whitespaces in include/submit.php 2017-10-22 23:48:17 -04:00
Hypolite Petovan b833a8d255 Fix cron_maintain
- Update profile before fetching scrape url
- Honor $parms['hide'] before validating dfrn site
- Fetch maintenance items oldest first
- Add backlog size in log
- Add pid to logger for easier threaded cron debug
2017-10-22 23:48:00 -04:00
Hypolite Petovan 4601c4bd8a Fix "PHP Warning: session_write_close(): Failed to write session data (user)" errors
- Changed returning true when there's a session ID but no session data
in ref_session_write()
- Moved session.php requires around
2017-08-01 21:02:24 -04:00
Hypolite Petovan e5416b0023 Fix deprecated constant MYSQL_ASSOC
- Add maintenance HTML file
2017-08-01 19:39:34 -04:00
Hypolite Petovan 2cabf7f37b Generalize the use of killme()
- Add fail condition to q()
2017-05-12 00:05:06 -04:00
Hypolite Petovan 381e68edc7 Remove closedb() 2017-05-12 00:04:37 -04:00
Hypolite Petovan 5559df82a6 Formatting 2017-05-12 00:04:04 -04:00
Hypolite Petovan 4ea1211ea8 Move q errno check inside db existence check
- Remove if ! function_exists
- Fix formatting
2017-05-11 23:29:56 -04:00
Roland Häder d400ed3342
Rewrite:
- don't download files - more worse JavaScript - from external CDNs
- this is a security nightmare when the remote CDN is compromised and starts
  distributing worms/trojan horses (see NSA scandal)
- this will give them away your user's IP addresses
- removed no longer used js/main.js as there is assets/js/main.js around
- moved css/js files in their own folder (assets/<css|js>)
- removed executable right from include/dba.php, no need for this

Signed-off-by: Roland Häder <roland@mxchange.org>
2017-05-11 16:49:02 +02:00
Hypolite Petovan de87a461c0 Redesign directory page display
- Updated profile card display, added description and tags
- Added column display for profiles
- Tweaked reset button behavior
2017-05-04 21:35:43 -04:00
Hypolite Petovan f297c670b3 Move App to src 2017-05-01 23:09:26 -04:00
Hypolite Petovan 68c1939d12 Enforcing standards ahead of moving App to src 2017-05-01 22:57:21 -04:00
Hypolite Petovan a8dc2e65f4 Merge branch 'master' into feature/redesign-prototype
# Conflicts:
#	.gitignore
#	.htconfig.php
#	.htconfig.php-dist
#	boot.php
#	include/dba.php
#	mod/health.php
#	util/htconfig.vagrant.php
2017-04-20 22:33:41 -04:00
Hypolite Petovan 783c15c207 Fix PHP notices all around
- Improve SQL query formatting
- Revert spaces to tabs after PHP CS Fixer
2017-04-20 21:41:47 -04:00
Hypolite Petovan 750f081078 Enforce coding standards in include/dba.php 2017-04-20 19:59:57 -04:00
Roland Häder 12e4bff880
Continued with cleanups:
- removed some empty lines at bottom of files
- added new-line character at end of file (as this else may confuse some old
  editors)
- moved JavaScript files out of "include" into own "js"
- if you set <basename>, you don't need full URLs in linked JavaScript files
  and CSS files

Signed-off-by: Roland Haeder <roland@mxchange.org>
2017-03-01 20:19:12 +01:00
Roland Häder c353b31569
Cleanups:
- don't commit files that are being ignored, better provide a "template" file
  that needs copying to the right file and ignore the file that will have local
  changes like config files will always have.
- fixed CHMOD, no need for executable flag here as the server won't execute
  these files, but only load (read) them
- fixed E_NOTICE in boot.php when entrance/index page (no parameter) is being
  called

Signed-off-by: Roland Haeder <roland@mxchange.org>
2017-03-01 20:00:32 +01:00
hauke f8906282ef added skeletons for help and stats page, text adjustements 2015-12-24 11:20:37 +01:00
hauke cd976b8dcc Removed gender and marital status for better privacy 2015-12-24 08:42:48 +01:00
hauke 3f5da87485 fix: function_exists checked for wrong function name 2015-12-24 08:15:22 +01:00
redmatrix 3e05ac762e increase widget counts 2015-05-21 18:36:46 -07:00
Beanow ec4a641013 Improved site-health detection.
* Detects redirects.
* Better descriptions in site-health details.
* Changed healthy site requirements to require HTTPS and >= 5 users.
* Cleaned graph javascript a little.
2015-02-02 12:28:12 +01:00
Beanow 9b8eaa7aa7 Made some improvements to how server statistics are displayed. 2015-01-24 21:49:53 +01:00
Beanow cf1f60e092 Bugfix: timestamps did not update for pull. 2014-08-10 14:42:13 +02:00
Beanow 1fe9bb9b5b Added syncing (push and pull) and refactored a few functions. 2014-08-09 00:46:53 +02:00
Beanow 0026b08a33 Added a simple submit-forwarding feature through the syncing cronjob. 2014-07-11 19:30:02 +02:00
Beanow 5c477f9b7f Faster import, better admin panel. 2014-07-11 01:35:30 +02:00
Beanow 5e1be6b2fe Experimental maintenance features. 2014-07-10 23:48:23 +02:00
Beanow a69a9d2278 Adding site-health and noscrape support. 2014-07-10 23:43:25 +02:00
Beanow c7d3173080 Improved stability of the submit feature to sustain large batches. 2014-07-01 14:00:14 +02:00
Beanow 40202ea948 Made a first version of import functionality.
* A very crude extraction step that creates a file with URLs.
* A processor that reduces the file to nothing as it imports them.
2014-07-01 03:27:56 +02:00
friendica 55907cf599 tag lister 2012-07-05 22:06:42 -07:00
friendica 574f074dc0 make it harder to create duplicate globaldir entries 2012-06-14 18:42:06 -07:00