summaryrefslogtreecommitdiff
path: root/includes/function.inc
Commit message (Collapse)AuthorAge
* CHANGES:Dries Buytaert2001-04-29
| | | | | | | | | | | | | | | | | | | | | | | | - Added new form_* functions to common.inc, used for building forms: it should improve 'stability' (no form typos, every- thing properly escaped/unescaped) and should help providing a very consistent user interface (wrt forms). - Adjusted node.module to use the new form functions. (Can be used as an example.) - Adjusted book.module to use the new form functions. (Can be used as an example.) - Merged function.inc into common.inc! - Slowly removing all global $status and $rstatus variables: use node_status() instead. TODO: - Apart from implementing the permission system, I'll spend some time updating most modules today and tomorrow to use the new form functions.
* - Added "custom" date/time format... to allow user-timezone-adjusted custom ↵Steven Wittens2001-04-21
| | | | | | date formats. I didn't add special logic to translate parts of it, but it's not really needed, as this is only meant for internal usage (e.g. checking if timestamp A is on the same date as timestamp B). Some modules (such as diary) should be changed to take advantage of this function, as they are now still using GMT+0 dates in some cases (e.g. the recent diary entries box).
* - Addition: added 2 new functions check_mail() and check_name()Dries Buytaert2001-04-19
| | | | | | to functions.inc useful for resp. verifying an e-mail address and username: currently used by account.php - but reusable by Julian's refer.module for example (prepares integration).
* - See whether this fixes your problem and if it does not, take a lookDries Buytaert2001-04-13
| | | | at what I tried to do. :)
* A lot of small changes (search-n-replace) make a big commit:Dries Buytaert2001-04-06
| | | | | | | | | | - fixed update bug in book.module - provide a log message when both adding and updating book pages - all configurable variables are now accessed through "variable_get()": - rewrote watchdog and submission throttle and removed watchdog.inc - improved robustness of sections.inc - imporved story.module - updated ./database/database.sql
* - fixed issue depricated call-by-reference issuesDries Buytaert2001-03-29
| | | | | | | | | - fixed small visual glitch in includes/function.inc - changed SQL tables around a bit to be more consistent (result: small changes to a lot of different files) - improved robustness of includes/node.inc - improved output of cron.module - improved output of node.php
* - update the linking mechanism: to link to a "node" (ex story) with titleDries Buytaert2001-03-28
| | | | "fubar", use [[fubar]] or [[fubar|link text]].
* - restored check_textarea: I changed it for debugging purpose but forgot toDries Buytaert2001-03-25
| | | | switch it back
* - refactoring, refactoring, refactoringDries Buytaert2001-03-25
|
* - added check_select to format selection boxesDries Buytaert2001-03-24
| | | | | | | - improved check_input so that it won\\\'t escape charachters more than once - added [linking] mechanism - more about this later
* - applied David Norman's patch to turn all <?'s into fully qualifiedDries Buytaert2001-03-10
| | | | <?php's.
* - more small improvementsDries Buytaert2001-03-08
|
* - fixed small translation glitch in format_intervalDries Buytaert2001-03-01
| | | | | | - added a couple of missing t() functions - improved the comments module, fixed the score problem Jeroen reported earlier -> it's slicker but I hope it won't break anything
* - locale module: added documentation (first draft)Dries Buytaert2001-02-21
| | | | | | - locale module: improved administration interface - headline module: fixed small visual glitch in export function - account: small improvements
* - added fine-grained user permission system which allows us to giveDries Buytaert2001-02-18
| | | | | | | | | certain users access to specific administration sections only. Ex. a FAQ maintainer can only edit the FAQ, and members of an "editorial board" can only edit comments, diaries and stories, .. - code review => rewrote include/user.inc which is much easier now - fixed 4 small bugs
* - More updates on the translation supportDries Buytaert2001-02-17
|
* - initial import of the preliminary translation code.Dries Buytaert2001-02-12
| | | | | | | | - added timer.inc for benchmarking purpose - bugfix for php-clean - bugfix for account.php - removed redundant format_data - ...
* - added a "search framework" which allows for easy searchingDries Buytaert2001-02-10
| | | | | (to be continued) - tidyied up some existing code
* I know, I know, it is getting nasty lately but I have another large commit ↵Dries Buytaert2001-01-21
| | | | | | after nothing but code. This time I redid the "category"-stuff. Categories - from now on called sections - are now maintained from the admin pages, can have their own post, dump and timout thresholds as discussed earlier (some weeks ago). By tomorrow evening users will be able to enable or disable section as well - i.e. to customize the content of drop.org.
* - updated/improved discussion engine: it needs additional fine-tuningDries Buytaert2001-01-20
| | | | | | | | | | | | | | | | | | | though but I think this is stable enough for public consumption and real-life testing. ==> a first big step towards a flexible comment engine. IMPORTANT: - Required theme updatins: UnConeD: check your $theme->controls() as I added a very, very dummy implementation - Required database updates: alter table users modify mode tinyint(1) DEFAULT '' NOT NULL; alter table comments change sid lid int(6) DEFAULT '0' NOT NULL; alter table comments add link varchar(16) DEFAULT '' NOT NULL; update comments set link = 'story';
* - created 2 new functions; check_textfield() and check_textarea() andDries Buytaert2001-01-13
| | | | | | | | | | | integrated them were appropriate. It works better and the code is more readable then it used to be: (see http://drop.org/discussion.php?id=44&pid=0#0) - story authors can no longer moderate their own stories (requested by Natrak) - fix inie-winnie small detail in theme marvin
* - fixed 2 small bugs in account.phpDries Buytaert2001-01-07
| | | | | | | | | | | | - drastically improved administration section - drastically revamped story administration: added new feature to schedule the publishing of stories - applied correct naming conventions to submission.php - fixed 1 small glitch in boxes - somewhat expanded the documentation = changed one SQL table - updated the faq with info on drupal - ... and more things I forgot about
* A batch of patches:Dries Buytaert2001-01-06
| | | | | | | | | | | | | | | | - configuration: + renamed $db_name to $db_user + renamed $db_base to $db_name - fixed small diary glitch - fixed initial-comment-score problem - fixed comment rating bug: improved the API and updated the themes - removed some tabs from Steven ;) - fixed backend warnings and improved robustness I'm not happy yet with the headline grabber - it generates too many SQL errors. - some small cosmetic changes in comment.module - fixed minor glitch in format_interval()
* - here a bunch of changes to make "drupal" (for now) work with PHP 4.0.4Dries Buytaert2000-12-30
| | | | - tidied up some of the code and mainly working on the documentation
* - improved web interface of cron module.Dries Buytaert2000-12-16
| | | | | | | | | | | - improved web interface of account module. - added simple permission system with both administrators and regular users. It can be made more fine-grained but it will do for now. - various small enhancements to the other modules, but nothing big.
* - small fixes/updatesDries Buytaert2000-12-16
|
* Again, a large batch of updates - I'm twisting things around here:Dries Buytaert2000-12-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. improved .htaccess to be more "secure": to keep prying eyes out 2. rewrote the administration section from scratch using a modular approach 3. improved the information gathered by error.php - we can now (hopefully) track what bots are crawling us. 4. fixed a bug in submit.php, fixed a bug in theme zaphod, fixed a bug in theme marvin. 5. rewrote cron from scratch - it now interfaces with modules as it should have been from the beginning. Very cool if you ask me - it can use UNIX/Linux crontabs. 6. updated widget.inc to be module aware - needs more work though - maybe this afternoon? 7. updated most modules: small bugfixes, improvements, and even the documentation 8. removed diary.php and made it a module - you can now run a drop.org site without a diary system if someone would prefer so 9. updated all themes to use the new modules where appropriate 10. added a robots.txt because the error message in the watchdog become annoying. 11. added the new configuration system (mutliple vhosts on the same source tree) - use hostname.conf instead of config.inc 12. removed calendar.inc and made it a module 13. added format_interval() to functions.inc (UnConeD) 14. whatever I forgot ...
* - large batch of updatesDries Buytaert2000-12-14
|
* - large batch of updated files featuring various changes: big, small andDries Buytaert2000-12-10
| | | | new stuff!
* - Redid most of account.php and fixed quite some bugs!Dries Buytaert2000-11-25
| | | | Check out your new user account stuff and give me some feedback.
* Another batch with a lot of internal updates, yet no visual changes to theDries Buytaert2000-11-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | site: - watchdog (rewrite): + the collected information provides more details and insights for post-mortem research + input limitation - database abstraction layer: + mysql errors are now verbose and is no longer displayed in a browser - fixes a possible security risk - admin.php: + updated watchdog page + fixed security flaw - diary.php: + fixed nl2br problem - themes: + fixed comment bug in all 3 themes. - misc: + renamed some global variables for sake of consistency: $sitename --> $site_name $siteurl --> $site_url + added input check where (a) exploitable and (b) possible + added input size check + various small improvements + fixed various typoes ... and much, much more in fact.
* - fixed bug in backend.incDries Buytaert2000-11-07
| | | | | | (check http://www.drop.org/backend.php) - update theme.inc to use widget.inc - small enhancements to function.inc
* - fixed a bug in check_input: html stripping was not 100% correct.Dries Buytaert2000-10-30
| | | | | | | | | | | | | - fixed a bug in account.php: the confirmation url is now correct. - improved error checking + security in diary.php. - fixed a bug in the html code of theme zaphod. - improved the date handling: always call format_date(). - expanded account information in administration pages. - added a new variable $siteurl to ./includes/config.inc. - added comment moderation to theme zaphod. - "alter table users add timezone varchar(8);" - !!! added new timezone feature !!! :o)
* This significant commit fixes 99% of all known bugs and improves drop.orgDries Buytaert2000-10-24
| | | | | | | by means of better security checks in order to avoid malicious behavior. In addition, quite some code has been fine-tuned. However, as a result, every theme will require a small update ...
* A bunch of internal changes:Dries Buytaert2000-10-21
| | | | | | | - better organisation of include files - renamed a few function to make more sense - small bugfix in the user account registration - ...
* A big, fat commit with a shitload of internal changes. Not that muchDries Buytaert2000-10-19
| | | | | | | | | | | | | | | | | | | | visual changes: - removed redundant files user.class.php, calendar.class.php and backend.class.php. - converted *all* mysql queries to queries supported by the database abstraction layer. - expanded the watchdog to record more information on what actually happened. - bugfix: anonymous readers where not able to view comments. - bugfix: anonymous readers could gain read-only access to the submission queue. - bugfix: invalid includes in backend.php - bugfix: invalid use of '$user->block' and last but not least: - redid 50% of the user account system
* Bugfixes, amongst them:Dries Buytaert2000-10-12
| | | | | | | | | - anonymous chicken was able to moderate commnets - "anonymous chicken" was displayed in the comment reply form - ... The only thing left to be done is to tackle (or continue tackling) the user accounts which in fact is quite some work. :o)
* Huge update - I don't have time to write everything down but the directoryDries Buytaert2000-10-10
structure changes, some sections are expanded. Take a look at the source code or ask me to elaborate on certain issues/topics.