11
freeop
Profile 0.90 Beta / Comments Search module
  • 2007/10/8 19:12

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12


#
# Table structure for table `profiles`
#

CREATE TABLE `profiles` (
  `
idint(11NOT NULL auto_increment,
  `
approvedtinyint(4NOT NULL default '0',
  `
viewabletinyint(4NOT NULL default '1',
  `
disabledtinyint(4NOT NULL default '0',
  `
uidint(11NOT NULL default '0',
  `
cidint(11NOT NULL default '0',
  `
namevarchar(50NOT NULL default '',
  `
imagevarchar(255NOT NULL default '',
  `
uploadimagevarchar(255NOT NULL default '',
  `
imagechoicetinyint(4NOT NULL default '0',
  `
urlvarchar(255NOT NULL default '',
  `
locationvarchar(75NOT NULL default '',
  `
listvarchar(255NOT NULL default '',
  `
descripttext NOT NULL,
  `
descript2text,
  `
linkprofiletinyint(1NOT NULL default '0',
  
PRIMARY KEY  (`id`)
TYPE=MyISAM COMMENT='Xoops Profiles Module';


# Table structure for table `xoops_profiles_cats`


CREATE TABLE `profiles_cats` (
  `
cidint(11NOT NULL auto_increment,
  `
namevarchar(75NOT NULL default '',
  `
pidint(11NOT NULL default '0',
  
UNIQUE KEY `ID` (`cid`)
TYPE=MyISAM COMMENT='Profiles Categories';


function comments_search($queryarray$andor$limit$offset$userid){
    global 
$xoopsDB;
    
$sql "SELECT com_id, com_pid, com_rootid, com_modid, com_itemid,  com_created, com_uid, com_title, com_text, com_status FROM ".$xoopsDB->prefix("xoopscomments")." WHERE com_id>0 ";
    if ( 
$userid != ) {
        
$sql .= " AND com_uid=".$userid." ";
    }
    
// because count() returns 1 even if a supplied variable
    // is not an array, we must check if $querryarray is really an array
    
if ( is_array($queryarray) && $count count($queryarray) ) {
        
$sql .= " AND ((com_title LIKE '%$queryarray[0]%' OR com_text LIKE '%$queryarray[0]%')";
        for(
$i=1;$i<$count;$i++){
            
$sql .= $andor ";
            
$sql .= "(com_title LIKE '%$queryarray[$i]%' OR com_text LIKE '%$queryarray[$i]%')";
        }
        
$sql .= ") ";
    }
    
$sql .= "ORDER BY com_created DESC";
    
$result $xoopsDB->query($sql,$limit,$offset);

    
$module_handler =& xoops_gethandler('module');
    
$modules =& $module_handler->getObjects(new Criteria('hascomments'1), true);

    
$ret = array();
    
$i 0;
     while(
$myrow $xoopsDB->fetchArray($result)){

        
$com_id $myrow[com_id];
        
$com_modid=$myrow[com_modid];
        
$com_pid=$myrow[com_pid];
        
$com_rootid=$myrow[com_rootid];
        
$com_itemid=$myrow[com_itemid];

        
$comment_config = array();
        
$comment_config $modules[$com_modid]->getInfo('comments'); 
        
        
$link "../".$modules[$com_modid]->getVar('dirname').'/';
        
$link .= $comment_config['pageName'].'?';
        
$link .= $comment_config['itemName'].'=';
        
$link .= $com_itemid.'&com_id='.$com_id.'&com_rootid='.$com_rootid;
        
$link .= '&com_mode=thread&#comment'.$com_id;
        
        
$ret[$i]['image'] = "img.gif";
        
$ret[$i]['link'] = $link;
        
$ret[$i]['title'] = $myrow['com_title'];
        
$ret[$i]['time'] = $myrow['com_created'];
        
$ret[$i]['uid'] = $myrow['com_uid'];
        
$i++;
    }
    return 
$ret;
}


Well its been a long time....I'm a noob again.. I'm trying to use the comment search to search the <`list` varchar(255)> data in the profiles module.. I'm running out of hair.. I've tried to contact hyperpod via email, phone, Pm and contact. The website will not allow me to register as well.. Is this just to simple for me or what.. Any help would be great..


Sources :
Comments Search Module 1.01
Profiles 0.91b



12
freeop
Re: new page to my site ??.
  • 2002/10/13 23:13

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12


Nice.. Thx I can use this.. I created a little script using the filename as a variable so I didn't have to add the code to each page :

ie : wrap.php?file=mypage.html
ie : wrap.php?file=MyDir/mypage.html
--------------------------------------
<?php
include("mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
OpenTable();
include($file);
CloseTable();
include(XOOPS_ROOT_PATH."/footer.php");
?>
----------------------------------------


EDITED :
This works ok.. If you put this code into the root call it wrap.php.. Usinghttp://your site/wrap.php?file=your.html or ?file=mydir/your.html as the link, it will show your html or php script in XOOPS display.. However the problem I had was any links from the page your calling had to be the same : mypage.html had to be changed tohttp://yoursite/wrap.php?file=

That is what the problem was, it doesn't read file and rewrite output changing links... But if you just want to show pages without editing each one it works great.. ( guess you can't really call it a wrapper )



13
freeop
Re: new page to my site ??.
  • 2002/10/13 8:25

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12


Go to this forum entry..A module name freecontent, and a Page Wrapper hack..


Forum Message



14
freeop
Re: Junk mail lately ? This Site could help
  • 2002/9/30 20:40

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12


I recently found a unknown crawler in my XOOPS Stats list..I went to This Site...Stating Quote:
The goal of this site, is to let you create a mod_rewrite, .htaccess or analog.cfg file with your selection of user agents!






15
freeop
Here are my boys...Hostrocket
  • 2002/9/28 7:58

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12


Hostrocket.. I've been with these guys for 2-2.5 years. They had a problem with trouble ticket support last year which is fixed now..

Altho they offer alot of features for a low price, I have to admit I don't have high traffic so I can't base the speed.. But I'm on a 2520mhz w 4000mb ram hotwired to OC-3 and OC-12 lines...

Unlimited :
Pop3's, email forwarding, auto responders, FTP accounts and subdomains..
10 mysql, 350mb, 20gb bandwith, usual Cpanel, MySQL manager and phpMyAdmin... running php 4.2.2 and zend opt 1.2.

And more at 12.00 per month at a 1yr strech..
I just setup another account tonight and made a mistake, trouble ticket time was 5 min at 3am...
site was up and running in 5 more.. DNS however takes 24-48 hours..

I just can't say anything bad about these guys..They've never been snotty or cranky with me.. hehe even for the stupid stuff.. When I need a perl module activated they just said sure thing...

The only thing I can't comment on is performance under a heavy user load.. But all the part are there.

The main Hostrocket link is here :
Hostrocket

Or don't know how much good it will do you can go to my site and play do some tracerouting or whatever.. this old server is on a 1300mhz...

geez I feel like asking for credit card numbers now..



16
freeop
Re: Anyone else receiving Chi/Japanese Junk mail lately ?
  • 2002/9/28 6:25

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12


You're Hired, haha.. I just hope future releases address this. You invest so much time in creating a website and user base just to have some idiot snatch them up in ten minutes.. ####...

What r These ####, did I type a bad word ?
Sorry, I can't even remember what word is was..


Hey now I remember now the word was s u c k s... Why is that word blocked.. Man, Thats been bugging me for 23 hrs and 12 min.. Yeah, Yeah I know I need to Unplug for a while, whew...



17
freeop
Re: Anyone else receiving Chi/Japanese Junk mail lately ?
  • 2002/9/27 8:16

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12


Well I downloaded a couple of email extractors, and scanned these forums and my site with the email generator.. The generator worked great, aside from the bandwidth issues.. However the program gives the path of where the emails were extracted from.. And can be figured out and blocked easy to continued scanning.. So I guess the only alternative to protecting members email adys is to scramble them a bit.. Changing the me@mail.com with an icon and function call I guess..

One good thing however I pointed the extractor to the members list to get addys and no go.. Thats good.. The forums for example gave alot of returns... So I guess the best solution is to not make your addy public until a solution is figured out.



18
freeop
Re: Anyone else receiving Chi/Japanese Junk mail lately ?
  • 2002/9/14 18:52

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12





19
freeop
Re: Anyone else receiving Chi/Japanese Junk mail lately ?
  • 2002/9/14 17:53

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12


Sorry Mike, I thought I posted the part when I edited my Message about the Email generation script. I guess I cut to much. oops..

Yeah it does a great job, I was impressed with the addys, but it does suck some resources... Trading one resource hog for another doesn't work very well.... Maybe let it generate a static page of 500 addresses, using a cron job to update the list or do it manually...

Searching logs can find the bot, I've seen an article on how to block them.. But like teleport pro, I just turn off the obey robot text and continue taking what I want off a website.. So that clearly isn't going to work... Nor will ip blocking. Not to a dedicated spammer...

Encoders seem to easy, I would think they could read them..One php generator example is here :
Paul Gregg's Email Encoder

Obfuscators would probably be the best bet for xoops. But if it's incorporated into XOOPS the variable should be named by the admin.. Each site is completely different in how they do it. So they would have to figure out the pattern process for each site rather then just a one for all solution
for all sites..

Well I'll be one playing with it, on a javaside anyway ( not much of a php writer yet ).. It will include a .js file and I'll have to dig through the XOOPS files. ugh...

But first I got a new motherboard and processers screaming to be stuffed into my box




20
freeop
Re: Anyone else receiving Chi/Japanese Junk mail lately ?
  • 2002/9/14 11:33

  • freeop

  • Just popping in

  • Posts: 25

  • Since: 2002/4/12


Yeah.. I check my logs and no hits... I get junk mail to three email address since this morning...
Here I have a Yahoo messenger email and and Admin email from mysite listed here... The other XOOPS sites I tend to use a ziplip email account and I just found some mail in there this morning too.. So I guess someone is making rounds to XOOPS sites for fresh emails..

I found another site on apache and php about trapping and identifing the harvesters. Here at Apache and PHP vs. the Spambots

My site is just a play site I doubt I get anyone over there scanning.. But I'm gonna play with it to protect my main site.. I don't want 500-5000 people screaming at me thinking I sold their addys, esp when a mission statement guarantees I don't..

I think changing the mailto tags to a link would be the best alternative, however thats gonna require more than a hack I think... The harvesters can pull websites too, so if they pull the websites here they can use that list to extract email addys from the other XOOPS sites..

I was gonna slingshot 30,000 emails back to sender, but pulled back, hell some spammer is probably is just using the h8h.com as a cover to catch the slack... I hate to spam some guy for no reason... But if I catch him in my logs he toast.

It is something that needs to be address tho.. The above links can get us started until a better solution can be presented...

I'm just glad (sorry) I'm not the only one..




TopTop
« 1 (2) 3 »



Login

Who's Online

151 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 151


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