MyXoops Forum

Forum - myXOOPS German Support

0 + 2 = ?  
Geben Sie das Ergebnis der Berechnung ein
Sie haben max. 10 Versuche.
 
* = Erforderlich

Re: Captcha unter xoops 2.3.1

Betreff: Re: Captcha unter xoops 2.3.1
von elpaksu am 10.12.2008 10:18:18

Habe es fast geschafft

if (is_readable(XOOPS_ROOT_PATH.'/class/captcha/xoopscaptcha.php')) {
include_once 
XOOPS_ROOT_PATH.'/class/captcha/xoopscaptcha.php';


$security = new XoopsCaptcha();
if (!
$security->verify(true)) {
$_POST['contents_preview'] = 1;
$_POST['contents_submit'] = null;
$_POST['contents_upload'] = null;
[
b]redirect_header('j a v a s c r i p t:history.go(-1);', 2, _CAPTCHA_INVALID_CODE );[/b]
        }
}


Jetzt nur noch eine Sache. Wenn man dann zurück geschickt wird sollte sich der Captcha Code automatisch aktualisieren. Das geht aber ohne reload nicht. Reload wiederrum wird nicht durch history.go(-1) aufgerufen. Kann man das irgendwie automatisieren..??

Habe an sowas gedacht:

function autoReload(){
  if (
window.name=='autoreload') {
     
location.reload();
     
window.name='';
  }
}


<INPUT TYPE="button" VALUE="Back" onClick="window.name='autoreload';history.go(-1)">



Habt ihr irgendein Vorschlag wie man es machen konnte?

Aktuell aus dem Forum

Forum Thema Antworten Views Letzter Beitrag