xoops forums

soconfused

Not too shy to talk
Posted on: 2005/9/7 19:00
soconfused
soconfused (Show more)
Not too shy to talk
Posts: 108
Since: 2005/4/2 1
#41

Re: Auth Module for wrapping HTML, PHP, CGI web site

Hello,

Could someone help me with the search function please, I'm really struggling to understand what needs to be edited, I've got it to show up in the search results but it's not picking up anything just showing 0 results so I must be missing something:

I've called Author 'Business Directory'
and the directory is named 'BusinessDirectory'
and the XOOPS url is 'http://www.mysite.co.uk/xoops2/'


search.php
<?php

// XOOPS2 - Auth version 1 - Search function
// Presented by ADMIN @ ROUTE286, 2004.

function auth_search ( $queryarray , $andor , $limit , $offset , $userid )
{

// ¤³¤³¤«¤éÊѹ¹¹àÌܤǤ¹¡£

// ¡ü ǧ¾Ú¥Ç¥£¥ì¥¯¥È¥ê(¥Õ¥©¥ë¥À)
// config.php ¤Ëµ­ºÜ¤·¤Æ¤¤¤ë¤â¤Î¤ÈƱ¤¸¤Ç¤¹¤¬¡¢
// ´ÖÀÜ»ØÄê¤Ï "/home/(¥â¥¸¥å¡¼¥ë̾)/(¥Ç¥£¥ì¥¯¥È¥ê̾)" ¤Ç¤¹¡£
// $auth_dir = "modules/auth/sample";
// ľÀÜ»ØÄê¤Ç¤âµ­ºÜ²Äǽ¤Ç¤¹¡£
// $auth_dir = "/home/username/htdocs/xoops/modules/auth/sample";

$auth_dir = "modules/auth/sample";

// ¡ü ½ÐÎÏ¥µ¥¤¥º
// ɽ¼¨¤¹¤ë¥µ¥¤¥º(Ⱦ³Ñʸ»ú¿ô)¡£
// ¥Õ¥¡¥¤¥ë¤ÎƬÉôʬ¤¬½ÐÎϤµ¤ì¤Þ¤¹¡£

$auth_size = 77;

// ¡ü ¶èÀÚ¤ê(¥Ç¥ê¥ß¥¿)
// config.php ¤Îµ­ºÜ¤Ë¹ç¤ï¤»¤ÆÊѹ¹¤·¤Þ¤¹¡£Æ¬¤Ë index.php ¤ò´Þ¤á¤Æ²¼¤µ¤¤¡£
// "index.php/" "index.php?" ¤È¤·¤Þ¤¹¡£
// Apache ¤Ë¤è¤ë index.php ¤Î¾Êά¤ò¹Ô¤Ã¤Æ¤¤¤ë¾ì¹ç¤Ï "" ¤È¤Ç¤­¤Þ¤¹¡£

$auth_delimiter = "index.php/";

// ¤³¤³¤Þ¤ÇÊѹ¹¹àÌܤǤ¹¡£°Ê²¼¤ÏÊѹ¹¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£

if ( isset ( $queryarray ) )
{
return "";
}

$auth_searchcount = 0;

$auth_handle = opendir ( $auth_dir );

while ( FALSE !== ( $auth_filename = readdir ( $auth_handle ) ) )
{
if ( FALSE !== strstr ( $auth_filename , ".htm" ) )
{
$auth_filelist = file ( "$auth_dir/$auth_filename" );
$auth_file = implode ( "" , $auth_filelist );
$auth_file = strip_tags ( $auth_file );

$auth_title = mb_strimwidth ( $auth_file , 0 , $auth_size , "..." );
// $auth_title = $auth_filename;

if ( $andor == "and" || $andor == "AND" )
{
$auth_ok = 1;

foreach ( $queryarray as $auth_query )
{
if ( FALSE === ( strpos ( $auth_file , $auth_query ) ) )
{
$auth_ok = 0;

break;
}
}
}
else
{
foreach ( $queryarray as $auth_query )
{
$auth_ok = 0;

if ( FALSE !== ( strpos ( $auth_file , $auth_query ) ) )
{
$auth_ok = 1;

break;
}
}
}

if ( $auth_ok == 1 )
{
if ( ( $offset <= $auth_searchcount )
&& ( ( $offset + $limit ) > $auth_searchcount ) )
{
$ret[] = array(
"link" => "$auth_delimiter"."$auth_filename" ,
"image" => "search.gif" ,
"title" => "$auth_title" ,
"uid" => "0" ,
"time" => ""
);
}

$auth_searchcount ++;
}
}
}

return $ret;
}

?>


xoops_version.php


<?php
// $Id: xoops_version.php,v 1.4 2003/09/21 07:40:10 kousuke Exp $

// XOOPS2 - Auth version 1
// Presented by ADMIN @ ROUTE286, 2004.

// ¡ü ¥â¥¸¥å¡¼¥ë̾
// ¥á¥¤¥ó¥á¥Ë¥å¡¼¤Ëɽ¼¨¤µ¤ì¤ë̾¾Î¤Ç¤¹¡£
$modversion['name'] = 'Auth ¥â¥¸¥å¡¼¥ë';

// ¡ü ÊÝ´ÉÀè¥Ç¥£¥ì¥¯¥È¥ê
// ¥Ç¥£¥ì¥¯¥È¥ê auth ¤«¤éÊ̤Î̾Á°¤Ë¤·¤¿¾ì¹ç¤ÏÊѹ¹¤·¤Æ²¼¤µ¤¤¡£
$modversion['dirname'] = "auth";

// ¡ü ¥µ¥Ö¥á¥Ë¥å¡¼
// ¥µ¥Ö¥á¥Ë¥å¡¼¤òÄɲä·¤¿¤¤¾ì¹ç¤Ï°Ê²¼¤Îµ­ºÜ¤òÄɲä·¤Þ¤¹¡£
// $modversion['sub'][1]['name'] = "¥á¥Ë¥å¡¼Ì¾";
// $modversion['sub'][1]['url'] = 'index.php/¥Õ¥¡¥¤¥ë̾';
// ¸À¸ìÊ̤˥á¥Ë¥å¡¼Ì¾¤òʬ¤±¤¿¤¤¾ì¹ç¤Ï
// $modversion['sub'][1]['name'] = _AT_MENU_1;
// $modversion['sub'][1]['url'] = 'index.php/¥Õ¥¡¥¤¥ë̾';
// ¤È¤·¡¢lunguage/(¸À¸ì)/main.php ¤Ë°Ê²¼¤òÄɲä·¤Þ¤¹¡£
// define ( "_AT_MENU_1" , "¥á¥Ë¥å¡¼Ì¾");

// ¡ü ¸¡º÷µ¡Ç½
// ¸¡º÷µ¡Ç½¤òÄɲ乤ë¾ì¹ç¤Ï°Ê²¼¤Î¤È¤³¤í¤òÄɲä·¤Þ¤¹¡£

$modversion['hasSearch'] = 1;
$modversion['search']['file'] = "search.php";
$modversion['search']['func'] = "auth_search";

// ¤³¤³¤Þ¤Ç¸¡º÷µ¡Ç½ÄɲÃ

$modversion['description'] = $modversion['name'];
$modversion['version'] = "1.13";
$modversion['credits'] = "";
$modversion['author'] = 'Presented by ADMIN @ ROUTE286.';
$modversion['help'] = "help.html";
$modversion['license'] = "GPL see LICENSE";
$modversion['official'] = 0;
$modversion['image'] = "files/authlogo.gif";

$modversion['hasMain'] = 1;
$modversion['hasAdmin'] = 0;

?>

Parak

Just popping in
Posted on: 2006/1/20 17:48
Parak
Parak (Show more)
Just popping in
Posts: 4
Since: 2006/1/20
#42

Re: Auth Module for wrapping HTML, PHP, CGI web site

Hi all,

Does anyone have a working link to download this module? I've searched everywhere, to no success. Thanks!

metroman

Just popping in
Posted on: 2006/2/9 15:29
metroman
metroman (Show more)
Just popping in
Posts: 14
Since: 2005/3/7 1
#43

Re: Auth Module for wrapping HTML, PHP, CGI web site

Likewise, I would really like to try this module out. None of the links in this thread seem to be live - they all lead to what looks like it might some sort of error page or notice (in japanese).

Anybody have this file?

MM

noisia

Not too shy to talk
Posted on: 2006/2/10 3:43
noisia
noisia (Show more)
Not too shy to talk
Posts: 123
Since: 2004/8/24
#44

Re: Auth Module for wrapping HTML, PHP, CGI web site

Hi,

I have uploaded it to my web site:

http://www.noisia.com/japan/modules/mydownloads/

Good Luck

metroman

Just popping in
Posted on: 2006/2/10 15:06
metroman
metroman (Show more)
Just popping in
Posts: 14
Since: 2005/3/7 1
#45

Re: Auth Module for wrapping HTML, PHP, CGI web site

Thanks noisia

Have downloaded and will be haveing a play soon.

Best

MM

jonr_is

Just popping in
Posted on: 2006/2/22 17:19
jonr_is
jonr_is (Show more)
Just popping in
Posts: 32
Since: 2006/1/2 1
#46

Re: Auth Module for wrapping HTML, PHP, CGI web site

Ok, I got it to work farly easily, with database queries and what not. Now I have two questions:

1. Can I use XOOPS template engine? I know it is Smarty, which I used on my old site, so I am already familiar with it. Is there a tutorial somewhere?
2. I want to add comments links on every database item, and the frontpage list. (The list is only about 20 items), would that be a problem?

I suspect that I will end up writing a full module in the end. :)
Now on Xoops: 4-3system.com

noisia

Not too shy to talk
Posted on: 2006/2/22 21:49
noisia
noisia (Show more)
Not too shy to talk
Posts: 123
Since: 2004/8/24
#47

Re: Auth Module for wrapping HTML, PHP, CGI web site

The author who developed the Auth Module is a Japanese and he completely stopped development on xoops. He never responded to any questions, so I think that if you need to know anything, you will have to develop it on your own.

I am not so technical that I can answer your question on whether smarties could be supported.

lunaticalm

Just popping in
Posted on: 2007/1/26 16:09
lunaticalm
lunaticalm (Show more)
Just popping in
Posts: 14
Since: 2005/1/4 1
#48

Re: Auth Module for wrapping HTML, PHP, CGI web site

Hi all,

Does anyone have a working link to download this module? All posted links are dead. Thanks!

carnuke

Home away from home
Posted on: 2007/1/26 18:52
carnuke
carnuke (Show more)
Home away from home
Posts: 1955
Since: 2003/11/5
#49

Re: Auth Module for wrapping HTML, PHP, CGI web site

I know this is late in the day, but I would recommend you use WRAPS by JIjoe

Very powerful module to incorporate html pages, including whole website structures, objects and images.
http://houseofstrauss.co.uk Resource for alternative health and holistic lifestyle
search xoops

BlueStocking

Home away from home
Posted on: 2007/6/13 1:58
BlueStocking
BlueStocking (Show more)
Home away from home
Posts: 1191
Since: 2007/2/16
#50

Re: New module: Auth(e) (?)

Got to find this guy and get the module he did. THIS IS SAD!!!

http://translate.google.com/translate ... wnloads/viewcat.php?cid=4

There is no XOOPS from TODO of ADMIN @ ROUTE286.

There was about not to be enough in XOOPS of that time.
In order to supply that even a little, making use of PHP and MySQL etc where experience is not enough
Unskillfulness it was possible and could meet and was open module and theme.
If we assume that that became stimulus even a little, became power, became influence to XOOPS growth
As for ADMIN @ ROUTE286 doing you think that it was not wasteful.

When it is not XOOPS, we would like to pour time to another thing, you thought ADMIN @ ROUTE286.
As for the thing of XOOPS certainly becomes aware in the problematical point the other person who
Doing a better thing, it solves, probably will be.

ADMIN @ ROUTE286 does not know up-to-date XOOPS information already.

As for the module which it releases the possibility the application to XOOPS which in the future is announced becoming difficult and,
Spending the time due to the support correspondence with releasing,
From consideration of the security problem perhaps and in the future it occurs,
Being able to meet, not distributing acknowledgment.
The one which it has utilized please moves to the equal module which other one releases ahead of time.
This in order to use relieved safely with up-to-date XOOPS, is necessary thing.

In addition if the opportunity is, and everyone feeling at rest safely, has become XOOPS which can be used,
For the second time, perhaps there are times when it touches.



As for ROUTE286/XOOPS
It closed.


ADMIN @ ROUTE286 ‚Ì TODO ‚©‚ç XOOPS ‚Í‚È‚­‚È‚è‚Ü‚µ‚½B

“–Žž‚Ì XOOPS ‚É‚Í‘«‚è‚È‚¢‚Æ‚±‚낪‚ ‚è‚Ü‚µ‚½B
‚»‚ê‚ð­‚µ‚Å‚à•â‚¤‚½‚߂ɁAŒoŒ±‚Ì‘«‚è‚È‚¢ PHP ‚Æ MySQL “™‚ð—p‚¢‚Ä
‰ºŽè‚ȏo—ˆ‚̃‚ƒWƒ…[ƒ‹‚âƒe[ƒ}‚ð‚ ‚¦‚ÄŒöŠJ‚µ‚Ä‚¢‚Ü‚µ‚½B
‚»‚ꂪ­‚µ‚Å‚àŽhŒƒ‚Æ‚È‚èA—Í‚Æ‚È‚Á‚āAXOOPS ¬’·‚ւ̉e‹¿‚É‚È‚Á‚½‚Æ‚·‚ê‚Î
ADMIN @ ROUTE286 ‚ªs‚Á‚½Ž–‚Í–³‘Ê‚Å‚Í‚È‚©‚Á‚½‚ÆŽv‚¢‚Ü‚·B

XOOPS ‚Å‚Í‚È‚­A•Ê‚ÌŽ–‚ÉŽžŠÔ‚𒍂¬‚½‚¢‚Æ ADMIN @ ROUTE286 ‚͍l‚¦‚Ü‚µ‚½B
XOOPS ‚ÌŽ–‚Í‚«‚Á‚Æ–â‘è“_‚É‹C‚¢‚½‘¼‚Ì•û‚ª
‚à‚Á‚Æ—Ç‚¢Ž–‚ðs‚Á‚Ä‰ðŒˆ‚µ‚Ä‚­‚ê‚é‚Å‚µ‚傤B

ADMIN @ ROUTE286 ‚Í‚·‚łɍŐV‚Ì XOOPS î•ñ‚ð’m‚è‚Ü‚¹‚ñB

ŒöŠJ‚µ‚Ä‚«‚½ƒ‚ƒWƒ…[ƒ‹‚͍¡Œã”­•\‚³‚ê‚é XOOPS ‚Ö‚Ì“K—p‚ª¢“ï‚É‚È‚é‰Â”\«‚ƁA
ŒöŠJ‚·‚鎖‚É‚æ‚éƒTƒ|[ƒg‘Ήž‚É‚æ‚鎞ŠÔ‚ð”ï‚â‚·Ž–A
‚»‚µ‚č¡Œã¶‚¶‚é‚©‚à‚µ‚ê‚È‚¢ƒZƒLƒ…ƒŠƒeƒB–â‘è‚̍l—¶‚©‚çA
‚ ‚¦‚Ä”z•z‚ðs‚í‚È‚¢Ž–‚ð‚²—¹³‰º‚³‚¢B
—˜—p‚µ‚Ä‚¢‚é•û‚Í‘‚ß‚É‘¼‚Ì•û‚ªŒöŠJ‚·‚铯“™‚̃‚ƒWƒ…[ƒ‹‚ֈڍs‚µ‚ĉº‚³‚¢B
‚±‚ê‚͍ŐV‚Ì XOOPS ‚ňÀSEˆÀ‘S‚ɉ^—p‚·‚邽‚ß•K—v‚ÈŽ–‚Å‚·B

‚Ü‚½‹@‰ï‚ª‚ ‚ê‚΁A‚»‚µ‚Ä’N‚à‚ª–³“ï‚ɈÀS‚µ‚ÄŽg‚¦‚é XOOPS ‚É‚È‚Á‚Ä‚¢‚ê‚΁A
Ä“xG‚ê‚鎖‚ª‚ ‚é‚©‚à‚µ‚ê‚Ü‚¹‚ñB



ROUTE286/XOOPS ‚Í
•Â½‚µ‚Ü‚µ‚½B
https://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG