Fork me on GitHub

Rapport de message :*
 

Re: Security Image Weblinks

Titre du sujet : Re: Security Image Weblinks
par kraven30 sur 24/07/2007 00:30:28

Pour XCGAL 2.03


Dans upload.php:
Vers la Ligne 145:

$xoopsTpl->assign('lang_notify'"_MD_NOTIFYAPPROVE");
$xoopsTpl->assign('lang_description'_MD_UPL_DESCRIPTION);
[
color=CC0000]// Hack SecurityImage by Dugris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
    if ( 
defined('SECURITYIMAGE_INCLUDED') ) {
        
$security_image = new SecurityImage_SECURITYIMAGE_GETCODE );
        if ( 
$security_image->render() ) {
            
$xoopsTpl->assign('lang_securityimage'_SECURITYIMAGE_CODE);
            
$xoopsTpl->assign('input_securityimage' $security_image->render() );
        }
    }
// Hack SecurityImage by Dugris[/color]
$xoopsTpl->assign('lang_submit'_SUBMIT);
$xoopsTpl->assign('lang_cancel'_CANCEL);


Dans db_imput.php
Vers la Ligne 80:
// Picture upload
//
        
case 'picture':
        if (!
USER_CAN_UPLOAD_PICTURESredirect_header('index.php',2,_MD_PERM_DENIED);
[
color=CC0000]// Hack SecurityImage by Dugris
    
include_once(XOOPS_ROOT_PATH "/class/xoopsformloader.php");
    if ( 
defined('SECURITYIMAGE_INCLUDED') && !SecurityImage::CheckSecurityImage() ) {
        
redirect_header'index.php' 1_SECURITYIMAGE_ERROR ) ;
    }
// Hack SecurityImage by Dugris[/color]
        
$album    = (int)$_POST['album'];
        
$title    $myts->makeTboxData4Save($_POST['title']);


Dans xcgal_upload.html:
Vers la Ligne 85:

<input type="text" size="50" name="user4" maxlength="255" value="" class="textinput" />            </td>
        </
tr>
        <{/if}>
        
[
color=CC0000]<!-- Hack SecurityImage by Dugris-->
          <
tr>
            <
td class="head"><{$lang_securityimage}></td>
            <
td class="even"><{$input_securityimage}></td>
          </
tr>
     <!-- 
Hack SecurityImage by Dugris-->[/color]
        <
tr>
            <
td colspan="2" align="center" class="foot">

Propulsé avec XOOPS | Graphisme adapté par Tatane, Grosdunord, Montuy337513

28 Personne(s) en ligne (19 Personne(s) connectée(s) sur Forum) | Utilisateur(s): 0 | Invité(s): 28 | Plus ...