Permalink
Browse files

update to last 0.12 of MyClientbase

the repo ower on bitbucket is quiting ! so update are now made by the
community.
  • Loading branch information...
1 parent 3ae2670 commit 41197c87ab37d19b01d6dd5752b99fc68b28b7cb @jeroenvheel committed May 23, 2012
Showing with 24,036 additions and 23,981 deletions.
  1. +49 −0 .gitattributes
  2. +6 −1 .gitignore
  3. +2 −2 application/core/MY_Controller.php
  4. +5 −5 application/core/MY_Loader.php
  5. +5 −4 application/core/MY_Model.php
  6. +5 −5 application/core/MY_Router.php
  7. +322 −322 application/helpers/dompdf/dompdf.php
  8. +402 −402 application/helpers/dompdf/dompdf_config.inc.php
  9. +901 −901 application/helpers/dompdf/include/cpdf_adapter.cls.php
  10. +576 −576 application/helpers/dompdf/include/dompdf.cls.php
  11. +244 −244 application/helpers/dompdf/include/font_metrics.cls.php
  12. +533 −533 application/helpers/dompdf/include/functions.inc.php
  13. +1,947 −1,947 application/helpers/dompdf/include/style.cls.php
  14. +5,648 −5,648 application/helpers/dompdf/lib/class.pdf.php
  15. +16 −16 application/helpers/dompdf/lib/fonts/mustRead.html
  16. +370 −370 application/helpers/dompdf/lib/res/html.css
  17. +7,390 −7,390 application/helpers/dompdf/lib/ttf2ufm/ttf2ufm-src/pt1.c
  18. +2,694 −2,694 application/helpers/dompdf/lib/ttf2ufm/ttf2ufm-src/ttf2pt1.c
  19. +60 −60 application/modules_core/client_center/models/mdl_client_auth.php
  20. +168 −168 application/modules_core/mailer/helpers/phpmailer/aboutus.html
  21. +813 −813 application/modules_core/mailer/helpers/phpmailer/class.smtp.php
  22. +25 −25 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-br.php
  23. +25 −25 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-ca.php
  24. +24 −24 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-cz.php
  25. +24 −24 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-de.php
  26. +25 −25 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-dk.php
  27. +25 −25 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-es.php
  28. +26 −26 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-fi.php
  29. +26 −26 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-fo.php
  30. +24 −24 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-fr.php
  31. +24 −24 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-hu.php
  32. +26 −26 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-it.php
  33. +24 −24 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-nl.php
  34. +24 −24 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-no.php
  35. +26 −26 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-ro.php
  36. +25 −25 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-se.php
  37. +26 −26 application/modules_core/mailer/helpers/phpmailer/language/phpmailer.lang-tr.php
  38. +78 −78 application/modules_core/sessions/models/mdl_auth.php
  39. +57 −57 application/third_party/MX/Base.php
  40. +60 −60 application/third_party/MX/Ci.php
  41. +68 −68 application/third_party/MX/Config.php
  42. +68 −68 application/third_party/MX/Lang.php
  43. +384 −384 application/third_party/MX/Loader.php
  44. +6 −6 assets/jquery/jquery.maskedinput-1.2.2.min.js
  45. +188 −188 assets/style/css/general.css
  46. +295 −295 assets/style/css/grid.css
  47. +80 −80 assets/style/css/installer.css
  48. +119 −119 assets/style/css/layout.css
  49. +23 −23 assets/style/css/messages.css
  50. +50 −50 assets/style/css/reset.css
  51. +5 −5 assets/style/css/styles.css
View
@@ -0,0 +1,49 @@
+*.doc diff=astextplain
+*.DOC diff=astextplain
+*.docx diff=astextplain
+*.DOCX diff=astextplain
+*.dot diff=astextplain
+*.DOT diff=astextplain
+*.pdf diff=astextplain
+*.PDF diff=astextplain
+*.rtf diff=astextplain
+*.RTF diff=astextplain
+
+*.jpg binary
+*.png binary
+*.gif binary
+
+*.cs text=auto diff=csharp
+*.vb text=auto
+*.c text=auto
+*.cpp text=auto
+*.cxx text=auto
+*.h text=auto
+*.hxx text=auto
+*.py text=auto
+*.rb text=auto
+*.java text=auto
+*.html text=auto
+*.htm text=auto
+*.css text=auto
+*.scss text=auto
+*.sass text=auto
+*.less text=auto
+*.js text=auto
+*.lisp text=auto
+*.clj text=auto
+*.sql text=auto
+*.php text=auto
+*.lua text=auto
+*.m text=auto
+*.asm text=auto
+*.erl text=auto
+*.fs text=auto
+*.fsx text=auto
+*.hs text=auto
+
+*.csproj text=auto merge=union
+*.vbproj text=auto merge=union
+*.fsproj text=auto merge=union
+*.dbproj text=auto merge=union
+*.sln text=auto eol=crlf merge=union
View
@@ -1 +1,6 @@
-/application/helpers/mpdf/
+/application/helpers/mpdf/
+system/config/database.php
+*/logs/log-*.php
+*/logs/!index.html
+*/cache/*
+*/cache/!index.html
@@ -1,3 +1,3 @@
-<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
-
+<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
+
/* The MX_Controller class is autoloaded as required */
@@ -1,6 +1,6 @@
-<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
-
-/* load the MX_Loader class */
-require APPPATH."third_party/MX/Loader.php";
-
+<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
+
+/* load the MX_Loader class */
+require APPPATH."third_party/MX/Loader.php";
+
class MY_Loader extends MX_Loader {}
@@ -7,10 +7,11 @@
* My_Model is an extension to CodeIgniter's core model that helps make
* developing models easier and less repetitive.
*
- * @version 2011.07.02
+ * @version 2012.05.01
* @copyright Copyright (c) 2011 Jesse Terry
*
* CHANGELOG
+ * 2012.05.01 - Addresses a couple of security vulnerabilities
* 2011.07.02 - Added $params support for joins
* 2011.06.01 - Added $params support for group_by
* 2011.05.31 - Added query($params) method
@@ -295,8 +296,8 @@ private function _prep_params($params = NULL) {
if (is_array($params['like'])) {
foreach ($params['like'] as $key=>$value) {
-
- $this->db->where('(' . $key . " LIKE '%" . $value . "%' or " . $key . " LIKE '" . $value . "%')");
+
+ $this->db->where('(' . $key . " LIKE " . $this->db->escape('%' . $value . '%') . " or " . $key . " LIKE " . $this->db->escape($value . '%') . ")");
}
@@ -538,7 +539,7 @@ public function db_array() {
if (isset($_POST[$field])) {
- $db_array[$field] = $this->input->post($field);
+ $db_array[$field] = $this->input->post($field, TRUE);
}
@@ -1,6 +1,6 @@
-<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
-
-/* load the MX_Router class */
-require APPPATH."third_party/MX/Router.php";
-
+<?php (defined('BASEPATH')) OR exit('No direct script access allowed');
+
+/* load the MX_Router class */
+require APPPATH."third_party/MX/Router.php";
+
class MY_Router extends MX_Router {}
Oops, something went wrong.

0 comments on commit 41197c8

Please sign in to comment.