231
Roby73
Module PM 1.06
  • 2011/10/19 20:53

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


Admin user can see all pm messages of the all users, changing id msg_id in readpmsg.php?msg_id.



232
Roby73
Re: Xortify 2.5.1 & Spiders 2.7.1 - Cloud Security for XOOPS & Clones
  • 2011/9/21 1:19

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


I saw that you modified all pagenav,
$pagenav = new XoopsPageNav($total$limit$start'start''num='.$limit.'&op='.$op);


without $_REQUEST['op']....

I just wanted to be helpful.



233
Roby73
Re: .htaccess in uploads/ folder
  • 2011/9/3 0:29

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


With my provider don't work
Can't read the files in directory.




234
Roby73
Re: .htaccess in uploads/ folder
  • 2011/9/2 13:22

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


The best solution is to change Apache configurationYou have to add Options  to the AllowOveride apache directory directive configuration.


This is a good solution, but if the hosting provider do not permit this, and remove .htaccess is dangerous... What is the solution?



235
Roby73
Re: Xortify 2.5.1 & Spiders 2.7.1 - Cloud Security for XOOPS & Clones
  • 2011/8/31 22:26

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


Sorry, I do not speak English, is very difficult for me.
In my site the file index.php the original line n.58 is
$pagenav = new XoopsPageNav($total$limit$start'start''num='.$limit.'&op='.$_REQUEST['op']);
don't work.

if i modify in:
$pagenav = new XoopsPageNav($total$limit$start'start''num='.$limit.'&op='.$op);
is ok....



236
Roby73
Re: Xortify 2.5.1 & Spiders 2.7.1 - Cloud Security for XOOPS & Clones
  • 2011/8/31 13:11

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


Because if i press in main menu robot manager (not other function) appears the list of the robot, but if i press the numbers of the pages, redirect to index of the website, because $op is not set, $_REQUEST['op'] in this function return null.

If modify
$_request['op']
with $op, in the $op have the value of the
$op = isset($_REQUEST['op'])?$_REQUEST['op']:'robots';





237
Roby73
Re: Xortify 2.5.1 & Spiders 2.7.1 - Cloud Security for XOOPS & Clones
  • 2011/8/30 13:06

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


In module spiders, i modify the file index.php at line 59 in:

$pagenav = new XoopsPageNav($total$limit$start'start''num='.$limit.'&op='.$op);

Because if i press "robot manager" in main menu, the page navigation is wrong.



238
Roby73
Re: XOOPS Basic Module Pack - Beta 1: ready for testing & feedback
  • 2011/8/23 14:06

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


Where is the code?
I have only add array errors[] and control if array is true redirect at submit.php with error message.
There isn't none input with paypal



239
Roby73
Re: XOOPS Basic Module Pack - Beta 1: MyLinks
  • 2011/8/22 22:34

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


I try to modify the submit (submit.php) in:
if (!empty($_POST['submit'])) {

    include_once 
XOOPS_ROOT_PATH '/class/module.errorhandler.php';
    
$eh = new ErrorHandler//ErrorHandler object
    
$submitter = !empty($xoopsUser) ? $xoopsUser->getVar('uid') : 0;

    
// RMV - why store submitter on form??
    /*
    if (!$_POST['submitter'] and $xoopsUser) {
       $submitter = $xoopsUser->uid();
    }elseif(!$_POST['submitter'] and !$xoopsUser) {
      $submitter = 0;
    }else{
      $submitter = intval($_POST['submitter']);
    }
  */
    // Check if Title exist
     
if ( !isset($_POST['title']) || ('' == $_POST['title']) ) {
         
$error[]=_MD_MYLINKS_ERRORTITLE;
     }
     
$title $myts->addSlashes($_POST['title']);

    
// Check if URL exist
    
$url $_POST['url'];
    if ( (!isset(
$url)) || ('' == $url) || ('http://' == $url)) {
        
$error[]=_MD_MYLINKS_ERRORURL;
    }
    
$url $myts->addSlashes($url);

    
// Check if Description exist
    
if ( '' == $_POST['message'] ) {
        
$error[]=_MD_MYLINKS_ERRORDESC;
    }
    if (isset(
$error)) {
    
$err=implode("<br />",$error);
    
redirect_header('submit.php'2$err);
    exit();
    }

    
$notify      = !empty($_POST['notify']) ? 0;
    
$cid         mylinksUtility::mylinks_cleanVars($_POST'cid'0'int', array('min'=>0));
    
$description $myts->addSlashes($_POST['message']);
    
$date        time();
    
$newid       $xoopsDB->genId($xoopsDB->prefix('mylinks_links').'_lid_seq');

    
$mylinksAdmin = ( is_object($xoopsUser) && $xoopsUser->isAdmin($xoopsModule->mid()) ) ? true false;
    
$status       = ( ( == $xoopsModuleConfig['autoapprove'] ) || $mylinksAdmin ) ? 0;
    
$sql sprintf("INSERT INTO %s (lid, cid, title, url, logourl, submitter, status, date, hits, rating, votes, comments) VALUES (%u, %u, '%s', '%s', '%s', %u, %u, %u, %u, %u, %u, %u)"$xoopsDB->prefix("mylinks_links"), $newid$cid$title$url' '$submitter$status$date0000);
    
$xoopsDB->query($sql) or $eh->show('0013');
    if (
$newid == 0) {
        
$newid $xoopsDB->getInsertId();
    }
    
$sql sprintf("INSERT INTO %s (lid, description) VALUES (%u, '%s')"$xoopsDB->prefix("mylinks_text"), $newid$description);
    
$xoopsDB->query($sql) or $eh->show('0013');
    
// Notify of new link (anywhere) and new link in category.
    
$notification_handler =& xoops_gethandler('notification');
    
$tags = array();
    
$tags['LINK_NAME'] = $title;
    
$tags['LINK_URL'] = XOOPS_URL "/modules/" $xoopsModule->getVar('dirname') . "/singlelink.php?cid={$cid}&amp;lid={$newid}";
    
$sql "SELECT title FROM " $xoopsDB->prefix("mylinks_cat") . " WHERE cid={$cid}";
    
$result $xoopsDB->query($sql);
    
$row $xoopsDB->fetchArray($result);
    
$tags['CATEGORY_NAME'] = $row['title'];
    
$tags['CATEGORY_URL'] = XOOPS_URL "/modules/" $xoopsModule->getVar('dirname') . "/viewcat.php?cid={$cid}";
    if ( 
== $xoopsModuleConfig['autoapprove'] ) {
        
$notification_handler->triggerEvent('global'0'new_link'$tags);
        
$notification_handler->triggerEvent('category'$cid'new_link'$tags);
        
redirect_header('index.php'2_MD_MYLINKS_RECEIVED "<br />" _MD_MYLINKS_ISAPPROVED "");
    } else {
        
$tags['WAITINGLINKS_URL'] = XOOPS_URL '/modules/' $xoopsModule->getVar('dirname') . '/admin/index.php?op=listNewLinks';
        
$notification_handler->triggerEvent('global'0'link_submit'$tags);
        
$notification_handler->triggerEvent('category'$cid'link_submit'$tags);
        if (
$notify) {
            include_once 
XOOPS_ROOT_PATH '/include/notification_constants.php';
            
$notification_handler->subscribe('link'$newid'approve'XOOPS_NOTIFICATION_MODE_SENDONCETHENDELETE);
        }
        
redirect_header('index.php'2_MD_MYLINKS_RECEIVED);
    }
    exit();
} else {

Is not very good solution but the errors display is better.



240
Roby73
Re: XOOPS Basic Module Pack - Beta 1: MyLinks
  • 2011/8/22 0:34

  • Roby73

  • Friend of XOOPS

  • Posts: 262

  • Since: 2011/6/15


Thank you very much, the file fix the problem.
There is another problem in mylinks.... Not true bug.... errors report with the /class/module.errorhandler.php is not very nice to see.
Ok for sql error but if missing title, url or description when submit form, is better another method.
What do you think?




TopTop
« 1 ... 21 22 23 (24) 25 »



Login

Who's Online

149 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 149


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