Roland Häder
6e44acfed6
Continued with coding convention:
...
- added curly braces around conditional code blocks
- added space between if/foreach/... and brace
- rewrote a code block so if dbm::is_result() fails it will abort, else the id
is fetched from INSERT statement
- made some SQL keywords upper-cased and added back-ticks to columns/table names
Signed-off-by: Roland Haeder <roland@mxchange.org>
2016-12-20 21:15:53 +01:00
Roland Häder
51716957b2
converted more to dbm::is_result() + added braces/space
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-20 15:37:27 +01:00
Roland Häder
e24c3a5b82
added much more curly braces + space between "if" and brace
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-20 11:56:34 +01:00
Roland Häder
c86f09a894
added spaces + curly braces
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-20 11:36:03 +01:00
Roland Häder
4dce3d8224
changed to this:
...
---------------------
function bla (App &$a) {
$a->bla = 'stuff';
}
---------------------
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-20 10:58:55 +01:00
Roland Häder
884f44ce94
*much* more usage of App::get_baseurl() instead of $a->get_baseurl() (coding convention applied)
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-19 14:27:16 +01:00
Roland Häder
46d383369c
Cleanup for #3010 - added spaces, thanks to @annando .
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-14 09:41:33 +01:00
Roland Häder
6a8a36f12d
More usage of dbm::is_result($r) instead of count($r):
...
- count() returns very different results and never a boolean (not even false on
error condition).
- therefore you should NOT use it in boolean expressions. This still *can* be
done in PHP because of its lazyness. But it is discouraged if it comes to
more clean code.
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-12-13 10:44:13 +01:00
Michael Vogel
668da905e2
"proc_run" is now called with priority.
2016-08-01 07:48:43 +02:00
fabrixxm
b202e02fbf
Revert "Updated modules to allow for partial overrides without errors"
...
This reverts commit db949bb802
.
2016-02-07 15:11:34 +01:00
Andrej Stieben
db949bb802
Updated modules to allow for partial overrides without errors
...
Only define functions if they have not been defined before, e.g. in themes. This makes it possible to override parts of a module and still use the other functions.
2016-02-05 21:52:39 +01:00
Michael Vogel
ab1edca0be
Profile photos are now having an extension
2015-11-13 10:15:30 +01:00
Michael Vogel
11905c0bec
The avatar picture wasn't updated at the contact table
2015-11-13 08:45:14 +01:00
Michael Vogel
5ac38b7f99
There is now only one central parameter for the global directory.
2015-09-15 22:29:02 +02:00
rabuzarus
a982320ba9
show maximagesize warning in a human readable format
2015-06-29 02:39:08 +02:00
Michael Vogel
6e7bd68ebb
More "LIMIT 1" removed - and some other SQL improvements.
2014-03-11 23:52:32 +01:00
Zach Prezkuta
e684324032
use explicit include paths
2012-12-28 14:51:50 -07:00
Zach Prezkuta
96ed0a7791
Implement Smarty3
2012-12-22 12:57:29 -07:00
friendica
a8d12061ca
rev update + multiple profile photos
2012-09-11 18:56:38 -07:00
Zach Prezkuta
1f09e7ad23
Modify Javascript to improve page loading times
...
1. Add template category 'end' that places content right before final </body> tag
2. Move most Javascript from tpl files into one cacheable file, theme.js
3. Load scripts at end of the HTML document instead of in the header
4. Minify several Javascript files
Note that the second and third things were only done for Frost and Frost Mobile. Doing it for every theme means going through every .tpl for every theme and rearranging the Javascript, which is tedious.
2012-07-28 09:57:16 -06:00
Zach Prezkuta
9fbe921051
auto-orient uploaded wall photos and profile photos also
2012-07-08 09:18:05 -06:00
Fabio Comuni
2438c6e45d
png support: update database.sql, fix some typos, fix tinymce image browser
2012-06-07 20:17:31 +02:00
Fabio Comuni
7cc8c369cb
Add support for PNG images with alpha
2012-06-07 17:42:13 +02:00
Alexander Kampmann
355c42cb30
Merge branch 'master' of https://github.com/friendica/friendica
...
Conflicts:
include/config.php
update.php
2012-04-05 13:39:15 +02:00
friendica
117d2165f5
form security error when using existing photo
2012-03-27 04:51:20 -07:00
Tobias Hößl
59766b944c
Some security against XSRF-attacks
2012-03-12 20:17:37 +00:00
friendica
8aa2552372
add remove_user hook (it looks like dreamhost changed all my file permissions, this will make a nasty commit)
2012-01-18 16:21:30 -08:00
friendica
8a19c7c379
warn about photo caching when updating profile pic
2011-11-12 13:47:51 -08:00
Friendika
da416e0181
bug in diaspora_reshare
2011-10-20 05:43:33 -07:00
Friendika
8f1e2efd5b
if photo is uploaded to "profile photos" album it could not be made into profile photo.
2011-09-15 03:06:43 -07:00
Fabio Comuni
e1107b55c6
add info() function. Works like notice() but show messages in a div with class info-message.
...
update code to use info() instead of notice() when appropriate (non-error message)
add info-message class style in themes
2011-05-23 11:39:57 +02:00
Friendika
b2e92e0af3
deprecate load_view_file
2011-05-11 04:37:13 -07:00
Friendika
c052d68828
don't use load_view_file() except in email templates and install of htconfig - to avoid getting wrong file when package is updated by copying over an older version.
2011-05-10 16:12:50 -07:00
Friendika
a0e7d8fa00
redirect to profile photo upload on very first login
2011-04-23 17:31:23 -07:00
Friendika
e35a5bac55
the rest of the english html templates except for htconfig
2011-04-07 23:10:43 -07:00
Friendika
f1db34eebc
more templates gone
2011-03-29 17:19:12 -07:00
Friendika
9838245c6c
Merge branch 'gettext' of https://github.com/fabrixxm/friendika into fabrixxm-gettext
2011-03-18 05:07:42 -07:00
Friendika
3f432a7b82
share,retweet,relay,forward, whatever
2011-03-16 19:36:59 -07:00
fabrixxm
9f7878057f
update source strings
2011-03-11 00:22:21 +01:00
Friendika
755c2245e8
move php path setting inside proc_run
2011-02-23 15:16:12 -08:00
Fabio Comuni
fb7959cfc0
Add a link to user photos in Upload Profile Photo page
2011-02-04 10:30:56 +01:00
Fabio Comuni
d72f248b3c
Allow to set a photo from albums as profile photo
2011-02-04 10:18:28 +01:00
fabrixxm
e9251499dd
Added proc_run() and modified all occurrence of proc_close(proc_open()) to use proc_run()
2011-01-24 22:00:02 +01:00
Friendika
6b5a83b9b8
profile load optimisation
2010-12-11 04:16:58 -08:00
Friendika
f4fd679928
couple of issues w/ profile photo update propogation
2010-11-09 18:24:35 -08:00
Friendika
b94cb8d234
add micro profile photo
2010-11-04 23:50:32 -07:00
Mike Macgirvin
ac824fe83e
eradicate redundant get_uid function
2010-10-18 14:34:59 -07:00
Mike Macgirvin
8424f31aad
a bit more robust about loading external pics
...
also friend confirm was getting wrong email
2010-10-04 16:04:52 -07:00
Mike Macgirvin
e25e40f1ef
i18n string extraction util
2010-09-29 18:11:23 -07:00
Mike Macgirvin
d5a13b1e4c
localisation path for all view templates
2010-09-22 18:00:19 -07:00