I think that's the software I'd used for a short time before creating my own.. due to my fairly specific needs.
<!-- 8291 misty mistyann5252@aol.com 08/10/04 -->
<b>Ad No.: </b>8291 - <b>Subject: </b>trade Catalina macaw for sulphur Crested - <b>Posted on: </b>08/10/04<br>
<b>Reply to: </b>misty at <a href="mailto: xxx">xxxx</a><br>
Catalina Macaw 12 months old ever sweet would like to trade for a Sulphur Crested cockatoo or a unbrella cockatoo or a african gray or sale for 1000.00 with cage <p>
<a href="http://"></a><p><font size="-3">Your internet ID -
|
August 10, 2004 at 12:53:47 |
Mozilla/4.0 (compatible; MSIE 6.0; AOL 9.0; Windows NT 5.1)</font>
<p><hr><p>
<!-- end 8291 -->
//Create default web-space
require '/usr/local/cpanel/Cpanel/Accounting.php.inc';
$host = "localhost";
$user = "your_WHM_account_name";
$accesshash = "Your accesshash without any comments.";
//this is created on your WHM panel
$domain=$member['uname'].".aviary.info";
//for me, I am going to create a default space
//for every user when they validate their account
//on my site.
$username=$member['uname'];
//This also would be changed to suit your needs.
$pass=$member['pass'];
$plan="youraccount_free";
//the default plan for the user
//my _free plan is very very basic with only
// a few features available.
$useSSH=0;
//set this to 1 if using this api call from
//another domain/server
createacct ($host,$user,$accesshash,
$useSSH,$domain,$username,$pass,$plan);
//end default web-space
$xoopsDB->queryF("INSERT INTO ".$xoopsDB->prefix("ann_annonces")." values ('', '$cat', '$title', '$type', '$description', '$tel', '$price', '$typeprix', '$date', '$email', '$submitter', '$usid', '$town', '$country', '$valid', '$filename', '0')");
if($xoopsDB->getAffectedRows()<=0) {
return False;
} else {
return True;
}
function AddAnnoncesOk($lid, $cat, $title, $type, $description, $tel, $price, $typeprix, $date, $email, $submitter, $usid, $town, $country, $valid, $photo, $photo_size, $photo_name, $HTTP_POST_FILES) {
global $xoopsDB, $myts, $photomax, $xoopsConfig, $destination, $xoopsLogger;
include("cache/config.php");
include("include/functions.php");
$title = $myts->makeTboxData4Save($title);
$type = $myts->makeTboxData4Save($type);
$description = $myts->makeTboxData4Save($description);
$tel = $myts->makeTboxData4Save($tel);
$price = $myts->makeTboxData4Save($price);
$typeprix = $myts->makeTboxData4Save($typeprix);
$submitter = $myts->makeTboxData4Save($submitter);
$town = $myts->makeTboxData4Save($town);
$country = $myts->makeTboxData4Save($country);
$filename = '';
if ( !empty($HTTP_POST_FILES['photo']['name']) ) {
include_once(XOOPS_ROOT_PATH."/class/uploader.php");
$upload = new XoopsMediaUploader("images_ann/", array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/jpg', 'image/pjpg', 'image/x-png'), $photomax);
$upload->setTargetFileName($HTTP_POST_FILES['photo']['name']);
$upload->fetchMedia('photo');
if (!$upload->upload()) {
redirect_header("addannonces2.php?cid=$cat", 3, $upload->getErrors());
return False;
exit();
} else {
$filename = $upload->getSavedFileName();
}
}
$xoopsDB->queryF("INSERT INTO ".$xoopsDB->prefix("ann_annonces")." values ('', '$cat', '$title', '$type', '$description', '$tel', '$price', '$typeprix', '$date', '$email', '$submitter', '$usid', '$town', '$country', '$valid', '$filename', '0')");
if($xoopsDB->getAffectedRows()<=0) {
return False;
} else {
return True;
}
}
switch($op) {
AddAnnoncesOk($lid, $cid, $title, $type, $description, $tel, $price, $typeprix, $date, $email, $submitter, $usid, $town, $country, $valid, $photo, $photo_size, $photo_name, $HTTP_POST_FILES)==True);
If(AddAnnoncesOk($lid, $cid, $title, $type, $description, $tel, $price, $typeprix, $date, $email, $submitter, $usid, $town, $country, $valid, $photo, $photo_size, $photo_name, $HTTP_POST_FILES)==True) {
redirect_header("index.php",1,_CLA_ANNADDED);
} else {
redirect_header("addannonces2.php?cid=$cat",3,"Duplicate Classified. Not Added.");
}
ALTER TABLE `xoops_ann_annonces`
ADD UNIQUE `PREVENTDUPE` ( `title` , `price` , `submitter` )
ALTER TABLE `xoops_ann_annonces` DROP INDEX `PREVENTDUPE` ,
ADD UNIQUE `PREVENTDUPE` ( `title` , `price` , `submitter` )