21
Defkon1
Re: initvar DTYPE for TIMESTAMP
  • 2011/1/22 17:49

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


INT for TIMESTAMP field too?

i'm not using timestamp as an INT(11), but MySQL5 TIMESTAMP format... (2011-01-01 ...)



22
Defkon1
Re: initvar DTYPE for TIMESTAMP
  • 2011/1/22 8:46

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


up?



23
Defkon1
Re: initvar DTYPE for TIMESTAMP
  • 2011/1/15 11:48

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


and for 2.5.0:

define('XOBJ_DTYPE_TXTBOX'1);
define('XOBJ_DTYPE_TXTAREA'2);
define('XOBJ_DTYPE_INT'3);
define('XOBJ_DTYPE_URL'4);
define('XOBJ_DTYPE_EMAIL'5);
define('XOBJ_DTYPE_ARRAY'6);
define('XOBJ_DTYPE_OTHER'7);
define('XOBJ_DTYPE_SOURCE'8);
define('XOBJ_DTYPE_STIME'9);
define('XOBJ_DTYPE_MTIME'10);
define('XOBJ_DTYPE_LTIME'11);
define('XOBJ_DTYPE_FLOAT'13);
define('XOBJ_DTYPE_DECIMAL'14);
define('XOBJ_DTYPE_ENUM'15);
// YOU SHOULD NEVER USE THE FOLLOWING TYPES, THEY WILL BE REMOVED
define('XOBJ_DTYPE_UNICODE_TXTBOX'16);
define('XOBJ_DTYPE_UNICODE_TXTAREA'17);
define('XOBJ_DTYPE_UNICODE_URL'18);
define('XOBJ_DTYPE_UNICODE_EMAIL'19);
define('XOBJ_DTYPE_UNICODE_ARRAY'20);
define('XOBJ_DTYPE_UNICODE_OTHER'21);



24
Defkon1
initvar DTYPE for TIMESTAMP
  • 2011/1/15 11:41

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


i know that actually DTYPE enums are:

//  * XOBJ_DTYPE_TXTBOX - Text Box
//   * XOBJ_DTYPE_TXTAREA - Text Area
//   * XOBJ_DTYPE_INT - Integer
//   * XOBJ_DTYPE_URL - URLs
//   * XOBJ_DTYPE_EMAIL - E-mails
//   * XOBJ_DTYPE_ARRAY - Arrays
//   * XOBJ_DTYPE_OTHER - Others (won't be cleaned)
//   * XOBJ_DTYPE_SOURCE -
//   * XOBJ_DTYPE_STIME - Short Time
//   * XOBJ_DTYPE_MTIME - Medium Time
//   * XOBJ_DTYPE_LTIME - Long Time


what DTYPE i've to use for correct management of a MySQL TIMESTAMP field?

thx in advance



25
Defkon1
Re: Xoops reCaptcha Class v1.00 beta
  • 2010/8/25 13:40

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


i solved this way:

1- modified formrecaptcha.php

$this->reCaptchaHandler->setKeys$private_key$public_key );

changed in
$this->reCaptchaHandler->getConfig();


2 - recaptcha.php, line 135 changed

$this->setError$response->getError() );


in
$this->setError"empty-recaptcha" );


3 - comment_post.php in the "post" case (around line 146) added

//DFK   
      
require_once XOOPS_ROOT_PATH '/class/recaptcha.php';
      
$xoopsRecaptcha =& XoopsRecaptcha::getInstance();
      
$xoopsRecaptcha->getConfig();
       if (! 
$xoopsRecaptcha->doValidate() ) {
        
redirect_header($redirect_page '=' $com_itemid '&com_id=' $com_id '&com_mode=' $com_mode '&com_order=' $com_order1$xoopsRecaptcha->getErrors(true));      
       }
       
//DFK



26
Defkon1
Re: Xoops reCaptcha Class v1.00 beta
  • 2010/8/25 11:06

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


I'm trying to use your reCaptcha class in comment form, without success.

Following the readme.doc I copied your hacked core files and reCaptcha class to my server; so, I modified /include/comment_form.php (around line 92):

$cform->addElement(new XoopsFormCaptcha());   //original


in

$cform->addElement( new XoopsFormRecaptcha$caption$privatekey$publickey ),true );   //hack


Actually the reCaptcha widget is correctly shown (see attachment), but it doesn't perform any validation.
I tried with wrong code and even left blank, but the form is submitted anytime...

what's wrong?

thanks in advance

Resized Image




27
Defkon1
Re: Oledrion items' limit
  • 2010/5/5 10:12

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


thank you very much...

i'm trying to investigate further!



28
Defkon1
Oledrion items' limit
  • 2010/5/4 14:18

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


I've inserted 174 items in oledrion and now i can't add anymore...

any hint on how to fix/debug it?

no help from php/msyql debug...



29
Defkon1
News 1.63 Vulnerability exploit
  • 2009/10/15 10:21

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


News 1.63 module is long time affected by a CSRF vulnerability on the new story/topic submit form (http://fatmatt.wordpress.com/2009/07/27/vulnerabilita-modulo-news-v1-63-per-xoops/)...

any fix available (protector apart)?



30
Defkon1
Exploit on xoops 2.3.3
  • 2009/6/22 7:16

  • Defkon1

  • Not too shy to talk

  • Posts: 151

  • Since: 2005/1/27


I don't know if this is the correct forum...

Quote:

Nibble Security discovered a remote arbitrary file retrieval in XOOPS version
2.3.3, which could be exploited to read system or XOOPS configuration files
("mainfile.php").


http://www.milw0rm.com/exploits/8974




TopTop
« 1 2 (3) 4 5 6 »



Login

Who's Online

225 user(s) are online (155 user(s) are browsing Support Forums)


Members: 0


Guests: 225


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits