272341
Zicane
Lotto game mod, need help
  • 2004/2/15 3:16

  • Zicane

  • Just popping in

  • Posts: 24

  • Since: 2002/12/12


Hi

I have made a lotto game module where users can pick 5 numbers onces a day.

The game works, but since php is not my strong side (did alot of copy and paste), I am hoping someone could help me with this mod..

In the admin the played numbers is showed like this...

admin - 25, 21, 9, 26, 8
admin - 21, 28, 12, 13, 20

The code I used to view them is...
Quote:

<?php
$result = $xoopsDB->query("select uname, h1, h2, h3, h4, h5 from ".$xoopsDB->prefix("lottoplade01nums")." order by uname");
while(list($uname, $h1, $h2, $h3, $h4, $h5) = $xoopsDB->fetchRow($result)) {
$secname=$myts->makeTboxData4Show($secname);
echo "$uname - $h1, $h2, $h3, $h4, $h5<br />";
$checked = '';
} ?>


But when the webmaster has to check the numbers when the drawing has been draw, it will the a long time because the numbers are not, from low to high.

I mean..
instead of admin - 25, 21, 9, 26, 8
it should be admin - 8, 9, 21, 25, 26

Does anyone know how I can make this? Then the webmaster could type in 8, 9, 21, 25, 26 in the search this page in the internet explorer and check if there was any matchs.

Hope someone can help me with this.



272342
jmass
Inserting data into module table
  • 2004/2/15 2:01

  • jmass

  • Friend of XOOPS

  • Posts: 524

  • Since: 2003/12/18


I am having a very tough time inserting data into a table of my module.

I am passing vars from a form via post. I can get the vars and echo them, but can not seem to insert them into my table.

Can anyone show me some sample code that illustrates how to d othis right? I have looked at the class files for news and such, but can't seem to figure this out.

Thanks,

JMass



272343
script_fu
Re: ShortURLs hack

Huh? ->just upload an .htaccess file with a Rewrite function and see if it works. <- Can you break that down a lil? Sure everyone knows about .htaccess but what in the **** is a rewrite fuction?



272344
kahumbu
Re: Contact Us get always same values
  • 2004/2/15 1:55

  • kahumbu

  • Documentation Writer

  • Posts: 277

  • Since: 2003/8/23


Go to System Admin -> Preferences -> General Settings and check if you've cached the Contact Us Module. Just remove the cache.



272345
fsvomx
Please, Help needed
  • 2004/2/15 1:39

  • fsvomx

  • Just popping in

  • Posts: 2

  • Since: 2004/2/15


First of all, a big hello to all you guys!
I´m new here and have been looking everywhere for documentation about the themes and i have not encountered nothig about where or how to place this: <{if $xoops_showcblock == 1}> and this: <{/if}> .

Because i´m not a programmer and i´m also beginig to understand xoops.

If some one has been passed through this or have some info about this, could you help me or tell me where to find a solution? Please.

Sorry for any error on my english.

Xoops is my favourite !

Thanks!

This is my theme.html file:

<table border="0" width="780px" height="80px" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td rowspan="2" width="25px" height="80px" valign="top" bgcolor="#FFFF00">&nbsp;</td>
<td rowspan="2" width="3px" height="80px" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
<td rowspan="2" width="160px" height="80px" valign="top" bgcolor="#000080"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo.jpg" alt="<{$xoops_sitename}>" border="0" /></a></td>
<td width="592px" height="60px" valign="top" bgcolor="#000080"><{$xoops_banner}></td>
</tr>
<tr>
<td width="592px" height="20px" valign="top" bgcolor="#00FF00">&nbsp;</td>
</tr>
</table>

<table border="0" width="780px" height="100%" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
<tr>
<td rowspan="4" width="25px" height="100%" valign="top" bgcolor="#FFFF00">&nbsp;</td>
<td rowspan="4" width="3px" height="100%" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
<td rowspan="4" width="160px" height="100%" valign="top" bgcolor="#000080">
<!-- Start left blocks loop -->
<{foreach item=block from=$xoops_lblocks}>
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" height="10px" width="100%"><div class="blockTitleL"><{$block.title}></div></td>
</tr>
<tr>
<td valign="top" height="30px" width="100%"><div class="blockContentL"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>
<!-- End left blocks loop -->
</td>
<td colspan="2" width="446px" height="25%" valign="top" bgcolor="#C0C0C0">&nbsp;</td>
<td width="146px" height="25%" valign="top" bgcolor="#800080">&nbsp;</td>
</tr>
<tr>
<td colspan="3" width="592px" height="25%" valign="top" bgcolor="#00FFFF">
<div id="contents"><{$xoops_contents}></div>
</td>
</tr>
<tr>
<td id="centerCcolumn" colspan="3" width="592px" height="25%" valign="top" bgcolor="#FF00FF">
<!-- Start center-center blocks loop --><{if $xoops_showcblock == 1}>
<{foreach item=block from=$xoops_ccblocks}>
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" height="10px" width="100%"><div class="blockTitleCC"><{$block.title}></div></td>
</tr>
<tr>
<td valign="top" height="30px" width="100%"><div class="blockContentCC"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>
<!-- End center-center blocks loop -->
</td>
</tr>
<tr>
<td id="centerLcolumn" width="223px" height="25%" valign="top" bgcolor="#008080">
<!-- Start center-left blocks loop -->
<{foreach item=block from=$xoops_clblocks}>
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" height="10px" width="100%"><div class="blockTitleCL"><{$block.title}></div></td>
</tr>
<tr>
<td valign="top" height="30px" width="100%"><div class="blockContentCL"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>
<!-- End center-left blocks loop -->
</td>
<td id="centerRcolumn" width="223px" height="25%" valign="top" bgcolor="#000080">
<!-- Start center-right blocks loop -->
<{foreach item=block from=$xoops_crblocks}>
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" height="10px" width="100%"><div class="blockTitleCR"><{$block.title}></div></td>
</tr>
<tr>
<td valign="top" height="30px" width="100%"><div class="blockContentCR"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>
<!-- End center-right blocks loop -->
<{/if}></td>
<td id="rightcolumn" width="146px" height="25%" valign="top" bgcolor="#FF0000">
<{if $xoops_showrblock == 1}>
<!-- Start right blocks loop -->
<{foreach item=block from=$xoops_rblocks}>
<table border="1" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td valign="top" height="10px" width="100%"><div class="blockTitleR"><{$block.title}></div></td>
</tr>
<tr>
<td valign="top" height="30px" width="100%"><div class="blockContentR"><{$block.content}></div></td>
</tr>
</table>
<{/foreach}>
<!-- End right blocks loop -->
</td>
</tr>
</table>

<{$xoops_footer}>

<br>



272346
dhansen
Toggle Show/Hide Title in Blocks
  • 2004/2/15 0:42

  • dhansen

  • Just popping in

  • Posts: 59

  • Since: 2003/12/6


I'd like to see the ability to selectively hide or show block titles on a block by block basis. It's kinda possible to do this by just leaving the title of a block blank, but that leaves a nasty hole in the page and nothing by which to identify the block on the block admin page.

I'd like to see a radio button that would allow me to enter a descriptive title for admin identification purposes, but if show="no", simply not display the title cell at all.

dh



272347
muffie
Web Links Module XOOPS 2.06
  • 2004/2/15 0:27

  • muffie

  • Just popping in

  • Posts: 2

  • Since: 2004/2/11


At first, I thought that I might have made a mistake, but I didn't. In the web links module, if I modify a link or the description of the link, I have to go and confirm it, that's when I notice that the module is reporting the old info as the new info. It's completely backward. Is there a work-around for this, and has anyone else eXPerienced this?



272348
Anonymous
Contact Us get always same values
  • 2004/2/15 0:08

  • Anonymous

  • Posts: 0

  • Since:


I have notice this, when I use Contact us block.
In the form fields appears my contact informations (username, e-mail, www etc.) and it`s OK.
BUT... when ANY of my users do this... they also have MY details!
Any suggestions???



272349
sunsnapper
Web Application Security Top 10

Module developers have been asking questions about how to strengthen the security of their modules.

OWASP, the Open Web Application Security Project has recently released its Top Ten security problems for Web Applications.

You can download the document here:
http://prdownloads.sourceforge.net/owasp/OWASPTopTen2004.pdf?download

There are tools at the site that you might find handy:
http://www.owasp.org/

The document goes into more detail about flaws and how to address them, but here is the abbreviated list of the Top Ten Security Vulnerabilities in web applications:

1. Unvalidated Input
Information not validated before used by the application.

2. Broken Access Control
Restrictions on Authenticated Users not enforced.

3. Broken Authentication and Session Management
Account sessions, tokens, cookies, etc. are not protected.

4. Cross-Site Scripting (XSS) Flaws
Attacker uses web application to deliver attack to user's browser.

5. Buffer Overflows
Unvalidated Input is used to crash a process and give control to attacker.

6. Injection Flaws
Attacker embeds malicious parameters that are passed to execute commands that would otherwise be unavailable.

7. Improper Error Handling
When errors are not handled properly, they may serve as a means of attack or provide vulerability details to an attacker.

8. Insecure Storage
Cryptographic security functions that can be difficult to implement properly allow some attackers access to credentials or information.

9. Denial of Service
Attacker consumes web application resources until the service is unable to provide access to other users or crashes completely.

10. Insecure Configuration Management
If the server you are running things on is insecure, the application (no matter how secure it is otherwise) is wide open to attack.




272350
Assone
I wish to change my e-mail address on this Xoops Web Site
  • 2004/2/14 23:51

  • Assone

  • Just popping in

  • Posts: 47

  • Since: 2004/1/11


Hi at all
I wish to change my e-mail address on this XOOPS Web Site.
I wasn't able to change my e-mail address from my account.

Thank a lot

Assone







Login

Who's Online

116 user(s) are online (73 user(s) are browsing Support Forums)


Members: 0


Guests: 116


more...

Donat-O-Meter

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

Latest GitHub Commits