1
jsabater
Re: xRoster 1.0
  • 2005/1/4 13:32

  • jsabater

  • Just popping in

  • Posts: 7

  • Since: 2003/11/11


The download link is dead. Could you please provide a working link?

Thanks in advance.



2
jsabater
Re: Jobs Module - Ready to use and Free
  • 2004/3/18 11:51

  • jsabater

  • Just popping in

  • Posts: 7

  • Since: 2003/11/11


Primetime... it's me

Anyway, just a small module. Any translations would be welcome (now available in Spanish, English and Catalan). You can contact me at primetime at linuxsilo dot net.

Thanks.



3
jsabater
Re: Postgress or SAP-DB???
  • 2003/12/19 9:54

  • jsabater

  • Just popping in

  • Posts: 7

  • Since: 2003/11/11


May I suggest Firebird (http://www.firebirdsql.org) as a good alternative? It's a complete, ANSI compliant database that supports triggers, stored procedures, and so on. Latest version is 1.5 rc7, which will probably be the last release candidate before 1.5. And it's GPL



4
jsabater
Re: foreach $HTTP_GET_VARS
  • 2003/12/10 9:53

  • jsabater

  • Just popping in

  • Posts: 7

  • Since: 2003/11/11


Thanks a lot to all of you. I got the necessary information.



5
jsabater
Re: foreach $HTTP_GET_VARS
  • 2003/12/9 18:37

  • jsabater

  • Just popping in

  • Posts: 7

  • Since: 2003/11/11


Ok, I see.

By the way, which should be the "best" or recommended way to avoid SQL injection? Does XOOPS do any sort of treatment for that purpose, so that you don't have to take care of it in your module?

Could this code be a good solution?

foreach ($HTTP_POST_VARS as $varname => $value) {
if (is_string($value)) $value = addslashes($value);
$vars[$varname] = $value;
}

And then use the values from $vars to store them in the database and always do a stripslashes before showing any string retrieved from the database.

Thanks for your response.



6
jsabater
foreach $HTTP_GET_VARS
  • 2003/12/9 17:59

  • jsabater

  • Just popping in

  • Posts: 7

  • Since: 2003/11/11


At the begining of the admin/index.php file in xoopsfaq module these two paragraphs can be found:

if (isset($HTTP_GET_VARS)) {
foreach ($HTTP_GET_VARS as $k => $v) {
$$k = $v;
}
}

if (isset($HTTP_POST_VARS)) {
foreach ($HTTP_POST_VARS as $k => $v) {
$$k = $v;
}
}

What are they for? To avoid SQL Injection? To avoid single quoting problems?

Thanks in advance.

P.S. In admin/index.php file of xoopspoll module only HTTP_POST_VARS are treated like this.



7
jsabater
Templates in control panel
  • 2003/11/20 12:25

  • jsabater

  • Just popping in

  • Posts: 7

  • Since: 2003/11/11


Hi. I am new to XOOPS and still trying to finish my first module.

So, I am programming the control panel scripts that control my module options and contents (it's a multiquestion survey, by the way), and I have not been able to use templates in it.

Looking inside the official modules, I have seen that they do not use templates in the admin scripts. Looking at /include/cp_header.php script, I see there is no include nor template initialization and management as in /header.php.

Could it be possible to add that feature? I mean, no need for blocks, no need for anything else than template initialization, so that one could do with these lines (as in module public scripts):

$xoopsOption['template_main'] = 'surveys_index.html';
oopsTpl->assign('lang_category', _SR_CATEGORY);

And so on...

Thanks in advance.




TopTop



Login

Who's Online

234 user(s) are online (167 user(s) are browsing Support Forums)


Members: 0


Guests: 234


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