41
soconfused
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2005/9/7 19:00

  • soconfused

  • Not too shy to talk

  • Posts: 108

  • Since: 2005/4/2 1


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

// 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


// $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;

?>

42
Parak
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2006/1/20 17:48

  • Parak

  • Just popping in

  • Posts: 4

  • Since: 2006/1/20


Hi all,

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

43
metroman
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2006/2/9 15:29

  • metroman

  • Just popping in

  • Posts: 14

  • Since: 2005/3/7 1


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

44
noisia
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2006/2/10 3:43

  • noisia

  • Not too shy to talk

  • Posts: 123

  • Since: 2004/8/24


Hi,

I have uploaded it to my web site:

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

Good Luck

45
metroman
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2006/2/10 15:06

  • metroman

  • Just popping in

  • Posts: 14

  • Since: 2005/3/7 1


Thanks noisia

Have downloaded and will be haveing a play soon.

Best

MM

46
jonr_is
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2006/2/22 17:19

  • jonr_is

  • Just popping in

  • Posts: 32

  • Since: 2006/1/2 1


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

47
noisia
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2006/2/22 21:49

  • noisia

  • Not too shy to talk

  • Posts: 123

  • Since: 2004/8/24


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.


48
lunaticalm
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2007/1/26 16:09

  • lunaticalm

  • Just popping in

  • Posts: 14

  • Since: 2005/1/4 1


Hi all,

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

49
carnuke
Re: Auth Module for wrapping HTML, PHP, CGI web site
  • 2007/1/26 18:52

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


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.
hhttp://houseofstrauss.co.uk Resource for alternative health and holistic lifestyle
search xoops

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

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

http://translate.google.com/translate?u=http://r286.com/xoops/modules/mydownloads/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
hhttps://xoops.org/modules/repository .. It is time to get involved - XOOPS.ORG

Login

Who's Online

247 user(s) are online (166 user(s) are browsing Support Forums)


Members: 0


Guests: 247


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits