1040 Commits

Author SHA1 Message Date
Clemens Schwaighofer
0dc53ee214 Add reverse time string convert method
StringTime converts a TimeStringFormat string back to a timestamp
2015-03-12 10:30:15 +09:00
Clemens Schwaighofer
c1dca67176 Update to core classes, see detail below
- config.inc: add define for show/not show all errors when parsning
  through Error.Handling.inc with SHOW_ALL_ERRORS
- Error.Handling.inc: check php error level and do not show ones that
  are not flagged unless SHOW_ALL_ERRORS is set to true
- db_pgsql.inc for fetch array, call the internal wrapper method, not
  the pg method directly
- db_pgsql_pdo.inc: test insert for alternative with pdo lib instead of
  php internal postgresql interface
- Class.DB.IO.inc: on prepared check if cursor exist before returing
  inserted id in INSERT queries. fail if no insert id could be aquired
  if there was no cursor (or other error)
- Class.Basic.inc: rewrite Time to string method for speed up and
  removal of old php microtime format
2015-03-05 16:59:05 +09:00
Clemens Schwaighofer
49835eedfb Update Smarty to 3.1.21
- add missing block.tphp, block.textformat.php, function.popup.php,
  function.popup_init.php
- update function in function.html_checkboxes.php,
  function.html_options.php
2014-12-11 13:06:30 +09:00
Clemens Schwaighofer
79e3c052e2 Update pChart to 2.1.4, fix small bug in Basic class
For the host name set, if there is no data in the HTTP_HOST var, then
set it to NA instead. Also default set to port 80 if no port info could
be found.
2014-12-11 11:56:18 +09:00
Clemens Schwaighofer
c6709f6782 Add reset/check for query call count
Whenever a query is executed without the db_return method and it is a
select query, then it is counted and if it is over a max value it will
return false and terminate.

With those functions that counter value can be checked and reset.

To be used carefully. It is recommended to rather make often called
queries with the same values prepare/execute style instead of resetting
the count.
v1.2.0
2014-12-09 14:04:14 +09:00
Clemens Schwaighofer
fa6856eb2a Update to core login: password set/lock, start add PDO::Pgsql
The login class and edit interface has added lock/strict login and a
basic layout add for forced change password in X days (not yet
implemented)

Also start adding pdo interface wrapper class for pgsql
2014-12-08 13:18:33 +09:00
Clemens Schwaighofer
8c4527cf4a Fix debug log path
Use the SELF var itself without running it through any pathinfo filter
v1.1.1
2014-09-30 16:25:22 +09:00
Clemens Schwaighofer
deff15cc71 Update core classes with better debugging output
Add server name to the print out and log print debug entry.
For the debug log file add the full file path so we know which file
exactly got accessed.
2014-09-30 16:12:50 +09:00
Clemens Schwaighofer
dd4dc12ed4 Update login to use two last error vars
First error date for the first error occured, last one for the last
error occured
2014-09-01 15:13:25 +09:00
Clemens Schwaighofer
96224d0d1e Update Login class with error count and report
If a user login fails and the user exists count the error and date of
last error.
If the user is set strict and the error login count is bigger than 10,
lock the user. User can only be unlocked from admin user.
Add new view only form table array type that is not saved, but only
viewed as is from the database value.
Add strict/lock yes/no into the edit user form.
Update edit user table with login error count, login error date, strict
and locked rows.
v1.1.0
2014-08-22 13:44:05 +09:00
Clemens Schwaighofer
9bae54af71 Remove double current page name from Login class
In login class an extra current page name variable was set, it is the
same as the page name variable set in the Basic class which is inherited
into the Login class.
Removed the current page name setting and variable and replaced it with
the page name variable
2014-07-23 10:50:01 +09:00
Clemens Schwaighofer
b12ded8ae3 Update prototype to 1.7.2 and create symlinks 2014-06-04 20:45:37 +09:00
Clemens Schwaighofer
1aa8f80409 Remove more old subversion keyword entries 2014-05-30 18:46:29 +09:00
Clemens Schwaighofer
c88f9236e9 Remove subversion keyword in edit_base 2014-05-30 17:57:25 +09:00
Clemens Schwaighofer
a828af6a81 Missing array init in Admin Backend, jquery & prototype update
If no page list data for admin backend is read, the pages array is not
set, init it, so it doesn't throw an error.

Update jquery 1 to 1.11.1, jquery 2 to 2.1.1 and prototype to 1.7.1.0
2014-05-20 10:37:01 +09:00
Clemens Schwaighofer
9e9770d3ef Bug fix to be able to ignore auto returning pk for inserts
Some tables do not have primary keys, so an override code is needed to
avoid getting auto returning set there.
If db exec is called 'NULL' (or the async version), then no RETURNING is
added or checked.
2014-05-19 17:34:02 +09:00
Clemens Schwaighofer
5e7359554f Form Class update to fix possible primary key variable overwrite when
reference inserts are written.
v1.0.2
2014-04-03 20:00:58 +09:00
Clemens Schwaighofer
5d79a96856 Add _sha1_short function to Basic class. Currently calls crc32b. Will
later return 9 char long sha1 from string given. Will be used for the
upcomging crc32b->sha1 switch in projects depending on this class
system.
v1.0.1
2014-04-02 11:39:33 +09:00
Clemens Schwaighofer
7ea35c2e61 Fix depricated /e for magic links regex callback. 2014-03-11 09:36:49 +09:00
Clemens Schwaighofer
6abd2dda1b Updte the table array files and fix missing tab intends 2014-02-13 11:37:54 +09:00
Clemens Schwaighofer
83128db511 Remove more Subversion Keywords 2014-02-06 17:35:12 +09:00
Clemens Schwaighofer
db4d386fb2 Remove all Subversion keywords 2014-02-06 17:17:01 +09:00
Clemens Schwaighofer
2dd286b25e Remove not needed empty line v1.0.0 2014-01-30 17:36:56 +09:00
Clemens Schwaighofer
e7dd073c07 fix login with new blowfish passwords 2014-01-29 11:36:54 +09:00
Clemens Schwaighofer
4591eab732 fix bug in Login class for detecting if we need to set the show edit
access drop down
2014-01-23 15:09:59 +09:00
Clemens Schwaighofer
c0bbec3295 add missing reset for error variable in the db_pgsql class.
cosmetic changes in db_pgsql class.
2014-01-23 12:57:57 +09:00
Clemens Schwaighofer
0658514e2e fixed bug in db async call if the query had an error, the error was not
cought and not reported back
2014-01-23 12:04:05 +09:00
Clemens Schwaighofer
1f7cab6241 fixed bug in getting primary key name if the table is in a different
schema to the current one
 * check current schema and set prefix to table if needed
 * check that if cursor is null we do not try to get any data but return false
2014-01-20 12:27:15 +09:00
Clemens Schwaighofer
96077aef92 add get schema method to DB IO class
fix wrong clear setting for MASTER TEMPLATE in set_paths.inc
2014-01-08 15:03:18 +09:00
Clemens Schwaighofer
d688499aee - update because of subversion checkin (keyword change)
- Class.DB.IO: add read method for db schema
2014-01-08 13:20:39 +09:00
Clemens Schwaighofer
7093d2bba4 edit_base.inc/edit_order.php:
change the order of the includes and change them to require.
move session start away and only set session name as the session is no
started automatically.
set_paths.inc:
missing form set detection, auto create picture cache root folder if it
does not exist
Class.Login.inc
set new acl var show_ea_extra. Is set to 1 if the user has more than one
edit access group
2014-01-08 13:07:02 +09:00
Clemens Schwaighofer
2327fcb68f - update Basic class to automatically set the session
- update Login class to init basic class before session check
- add form token set/validate methos in basic class
- remove old smarty 3.1.14
2014-01-07 11:52:01 +09:00
d7a43f9d24 missing space after FROM line in PK NAME query if no schema is defined 2013-12-12 18:53:10 +09:00
dd7ab1d74b change the PK NAME select query from the core postgresql class to a more
faster version
2013-12-12 16:28:40 +09:00
99860e7da2 Added PK name for edit_log insert db_exec call to avoid any extra SELECT
calls
2013-12-12 13:38:08 +09:00
4d3aab2f0f PHP Core libraries
- update www/log, www/templates_c, www/tmp ignore files
2013-12-11 16:19:24 +09:00
5808151c7f PHP Core Libraries
- removed global ignores for log, tmp, template_c to per folder so I can
  add the folders
2013-12-11 15:58:37 +09:00
d560ff367a PHP Core Libraries
- add missing .gitignore entries for tmp/
2013-12-11 15:52:45 +09:00
7285d3947c PHP Core Libraries
- add .gitignore for log, templates_c and tmp
- add base www/ folder
2013-12-11 15:52:08 +09:00
de4db95d16 PHP Core libraries
- add 4dev/ folder
2013-12-11 15:44:33 +09:00