1
sohrab
Re: how to map the XOOPS_URL to two ip addresses?
  • 2007/5/25 2:45

  • sohrab

  • Just popping in

  • Posts: 9

  • Since: 2007/3/17


forgot to mention,if u setup your browser to not go to ur isp proxy, above method shall only allow u to use your server locally, shall not use ISP proxy for local access, much secure.

I believe it is secure as it checks for IP of local user. Prevents IP spoofing...



2
sohrab
Re: how to map the XOOPS_URL to two ip addresses?
  • 2007/5/25 2:26

  • sohrab

  • Just popping in

  • Posts: 9

  • Since: 2007/3/17


Yet a bit different way,

<?php
// XOOPS Virtual Path (URL)
// Virtual path to your main XOOPS directory WITHOUT trailing slash
// Example: define('XOOPS_URL', 'http://localhost');
// auto change the host name for local or remote access

$itxx_local_host_ip = gethostbyname("FQDN"); // Use host name part only for win32
$itxx_user_ip = $_SERVER['REMOTE_ADDR'];

$itsl_pattern = "'(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})'";
$itsl_is_local = ((preg_replace($itsl_pattern,"\\1.\\2.\\3",$itxx_user_ip)==preg_replace($itsl_pattern,"\\1.\\2.\\3",$itxx_local_host_ip)))?true:false;


if ($itsl_is_local) {
define('XOOPS_URL', 'http://local.i.p.x');// use local ip 192.168.x.x
} else {
define('XOOPS_URL', 'http://www.itslbd.com');
}
?>

Hope this helps, Note: this is originally from sourceforge.



3
sohrab
Re: userinfo.php issues
  • 2007/5/17 2:37

  • sohrab

  • Just popping in

  • Posts: 9

  • Since: 2007/3/17


Hello

I hv also modified original XOOPS to my likings and to make it a bit more secure. With all the hacks available, u can actually make it as secure as any cms can get!!

So, Now using original with all the hacks..works very good.

ne way, for userinfo there is hack for i believe v 2.0.13~2.0.16 that works, which version of core u'r using ?

for my 2.0.16 (latest stable) I have followed instructions from these below(visit following and can figure easily what u need to do),

https://xoops.org/modules/smartfaq/faq.php?faqid=282

https://xoops.org/modules/newbb/viewtopic.php?topic_id=34409&forum=7&post_id=246125#forumpost246125

https://xoops.org/modules/newbb/viewtopic.php?topic_id=58797&forum=2&post_id=260976#forumpost260976

Please read away...

I'm sure others also can help




4
sohrab
Re: Xoopstats v 0.60 Download link please
  • 2007/4/26 12:38

  • sohrab

  • Just popping in

  • Posts: 9

  • Since: 2007/3/17


thanks and received the file via e-mail

anyhow..still the creators site do not work for me..

really appreciate your help



5
sohrab
Re: Xoopstats v 0.60 Download link please
  • 2007/4/26 9:41

  • sohrab

  • Just popping in

  • Posts: 9

  • Since: 2007/3/17


Quote:

JAVesey wrote:
Google is your friend:

Download here


The link is the same I'hv already posted(click the link posted)..it does not work...surely U did not check or I was banned ibdeeming site access!!

Frankly google did not help either, at least in this case!! no more download link show up other then creators site(ibdeeming) that does not work for me...

if you have the mod. Please e-mail me (if you cannot post). my email addy,

itsl01 at g m a i l. com

appreciate your help



6
sohrab
Re: Resend Activation Email?
  • 2007/4/26 9:03

  • sohrab

  • Just popping in

  • Posts: 9

  • Since: 2007/3/17


OK, Installed this hack works great,
(by khuhner on 2006/10/24 1:19:43)
xoops 2.0.16 + heavy hacks...

Noticed one small syntx error in the code and added xoops-ulr(instead of yourdomain.com)..

Attached the modified one..just upload and add link into login blocks.

could not attach but here it is,

====================================re-activate.php
<?PHP
### ======================================================
### XOOPS Brasil - A comunidade diferente!
### ======================================================
### Arquivo para reenvio de Link de Ativação
### Script for resend the activation link
### ======================================================
### Developer: Fernando Santos, fernando@zend.com.br
### Copyright: www.xoops.net.br © 2003-2004
### ------------------------------------------------------
### www.xoops.net.br
### ======================================================
### v.1.0, Sun Dec 19 15:33:59 BRST 2004
### ======================================================

$xoopsOption['pagetype'] = "user";
include "mainfile.php";
include 'header.php';

// Doesn't matter GET or POST
$email = isset($HTTP_GET_VARS['email']) ? trim($HTTP_GET_VARS['email']) : '';
$email = isset($HTTP_POST_VARS['email']) ? trim($HTTP_POST_VARS['email']) : $email;

// If $email is empty, show form for link resend
if ($email == '') {
echo <<< TOPET05
<fieldset style="padding: 10px;">
<legend style="font-weight: bold;">Resend activation link</legend>
<div><br />Fill in the e-mail you used to register and we will resend the activation email.</div>
<form action="$_SERVER[PHP_SELF]" method="post">
Registered E-mail: <input type="text" name="email" size="26" maxlength="60" />&nbsp; <input type="submit"

value="Send" />
</form>
</fieldset>
TOPET05;
$email='';
// If $email is not empty, let's verify some things before sending the link
}else{
$myts =& MyTextSanitizer::getInstance();
$member_handler =& xoops_gethandler('member');
// The line below returns an array with all the users registered with the given e-mail, in our case it'll be only the

$getuser[0];
$getuser =& $member_handler->getUsers(new Criteria('email', $myts->addSlashes($email)));

// If the e-mail doesn't exist in the database, $getuser returns array()...
if ($getuser == array() ) {
echo "<br><br><h3>E-mail " . $email . " doesn't appear to be registered in our databases!</h3><br><br><h4>Please click

<a href=''.XOOPS_URL.'/Re-Activation.php'>here</a> to retry.</h4>";
include("footer.php");
exit();
}

// If the e-mail doesn't exist in the database, $getuser returns empty...
if (empty($getuser)) {
echo "<br><br><h3>The e-mail isn't registered in our databases!</h3>";
include("footer.php");
exit();
}
//Verifying if the user is already active...
if($getuser[0]->isActive()){
echo "<br><br><h3>The user ".$getuser[0]->getVar('uname').", registered with e-mail ".$getuser[0]->getVar('email')."

is already active!</h3>";
include("footer.php");
exit();
}
//Sending it
$xoopsMailer =& getMailer();
$xoopsMailer->useMail();
$xoopsMailer->setTemplate('register.tpl');
$xoopsMailer->assign('SITENAME', $xoopsConfig['sitename']);
$xoopsMailer->assign('ADMINMAIL', $xoopsConfig['adminmail']);
$xoopsMailer->assign('SITEURL', XOOPS_URL."/");
$xoopsMailer->setToUsers($getuser[0]);
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
$xoopsMailer->setFromName($xoopsConfig['sitename']);
$xoopsMailer->setSubject(sprintf("- Resend - "._US_USERKEYFOR,$getuser[0]->getVar("uname")));
if ( !$xoopsMailer->send() ) {
echo "<br><br><h3>It could not be possible to resend the activation link for ".$getuser[0]->getVar('uname').".

Contact itslbd.com <a href=''.XOOPS_URL.'/modules/contact/'>Contact administrators</a>.</h3>";
include("footer.php");
exit();
} else {
echo "<br><br><h3>The activation link for ".$getuser[0]->getVar('uname')." was resent. If you don't receive

the e-mail in a few hours, try again or contact the site</h3>";
}
}
include("footer.php");
?>

=============================================

thanks for the great hack ...



7
sohrab
Xoopstats v 0.60 Download link please
  • 2007/4/26 8:47

  • sohrab

  • Just popping in

  • Posts: 9

  • Since: 2007/3/17


hello everyone,

I cannot download the v0.60, as the creators site has changed,
http://xoops.ibdeeming.com/modules/wfdownloads/visit.php?cid=2&lid=11

New site looks like a blog and do not hv any download section or not ready yet.

Can anyone post the latest v0.60 here or in the forum..so that i can download this module. Even with my 0.45(downloaded from mod repository) It looks and feels great...can't wait to see how .60 performs

appreciate any assistance



8
sohrab
Re: Downloads Modules
  • 2007/4/5 17:50

  • sohrab

  • Just popping in

  • Posts: 9

  • Since: 2007/3/17


Tried many cms, but found out XOOPS is the best..installed it with all the suitable modules. just love XOOPS stuff...only problem is lot less module support and info.

It's time for me to contribute something to the XOOPS community.

I had similer problems, with most of the download modules.

Disable gzip compression in the XOOPS core i.e. in the systems module...i..e systems > general pref.> gzip "no"

But this really slows down if your host do not turn on gzip/zlib, to find out one can use the phpinfo() function..better yet, install XOOPS stat, and it will tell you in a nice format! if you got gzip turned on in php..

If not just add this line to your .htaccess file in the root folder of your site,

php_flag zlib.output_compression on

this is actually lot faster then XOOPS gzip..at least at my site ...http://www.itslbd.com/

Hope this helps...





TopTop



Login

Who's Online

175 user(s) are online (120 user(s) are browsing Support Forums)


Members: 0


Guests: 175


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