Archive for Июль, 2007

Вирус

Вирус
Вирус
Благо, DoctorWeb настороже,и я пользуюсь ,браузером OPERA,для которого даная пакость пока безвредна.Подкидываю вам пару ссылок :

http://forum.drweb.com/viewtopic.php?t=5614

forum.drweb.ru/index.php?showtopic=41210&hl=VBS%5C.PackFor

http://www.antivirus.ru/VirAnalizB.html

Popularity: 5% [?]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Проверяем есть ли мы в Яндексе.

http://www.yandex.ru/yandsearch?serverurl=ocherk.com

Popularity: 5% [?]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

На заметку

##############################################################
## MOD Title: your site auth with bpbBB
## MOD Author: baa-lamb < more_then_spam(a)mail.ru > (Nikita V Postnikov) http://n-postnikov.narod.ru
## MOD Description: Adds phpBB authentification to your site.
## MOD Version: 0.0.1a
##
## Installation Level: Easy
## Installation Time: 1 minutes
## Files To Edit: includes/page_header.php
## templates/subSilver/overall_header.tpl
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD’s not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
## This MOD has been tested on phpBB 2.0.19.
##
##############################################################
##
## MOD History:
##
## 2006-01-20 - Version 0.0.1a
## - Initial release
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#—–[ OPEN ]——————————————
#
includes/page_header.php
#
#—–[ FIND ]——————————————
#
‘U_SEARCH_UNANSWERED’ => append_sid(’search.’.$phpEx.’?search_id=unanswered’),
#
#—–[ BEFORE, ADD ]————————————
#
‘U_SCRIPT_PATH’ => $board_config[’script_path’],
#
#—–[ OPEN ]——————————————
#
templates/subSilver/overall_header.tpl
#
#—–[ FIND ]——————————————
# You must find all affiliations
@import url(”templates/
#
#—–[ REPLACE WITH ]——————————————
# You must replace all affiliations
@import url(”{U_SCRIPT_PATH}templates/
#
#—–[ FIND ]——————————————
# You must find all affiliations
@import url(”{U_SCRIPT_PATH}templates/
<a href=”{#
#
#—–[ REPLACE WITH ]——————————————
# You must replace all affiliations
<a href=”{U_SCRIPT_PATH}{
#
#—–[ FIND ]——————————————
# You must find all affiliations
<img src=”templates/#
#
#—–[ REPLACE WITH ]——————————————
# You must replace all affiliations
<img src=”{U_SCRIPT_PATH}templates/
#
#—–[ SAVE/CLOSE ALL FILES ]——————————————
#
# EoM

Далее в начале страницы на кторой требуется аутентификация (про функцию include() рассказывать не буду) вставляем:
Код:

/******************************************************************************************************************/
$access_group_id = 6; //идентификатор группы, которой разрешён доступ к странице.
/******************************************************************************************************************/
define(’IN_PHPBB’, true);
$phpbb_root_path = $_SERVER[’DOCUMENT_ROOT’].’/forum/’; //ну или где у вас там болтается форум
include($phpbb_root_path . ‘extension.inc’);
include($phpbb_root_path . ‘common.’.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
/******************************************************************************************************************/
/* всех, кто не залогинился перенаправляем на страницу логина */
if ( !$userdata[’session_logged_in’] )
{
redirect(append_sid(”login.$phpEx”, true));
}
/******************************************************************************************************************/
/* Выдёргиваем информацию */
$user_id = $userdata[’user_id’];
/******************************************************************************************************************/
//
// Get group_id for this user_id
//
$sql = “SELECT ug.group_id
FROM ” . USER_GROUP_TABLE . ” ug
WHERE ug.user_id = $user_id
AND ug.group_id = $access_group_id”;
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, ‘Could not select info from user/user_group table’, ”, __LINE__, __FILE__, $sql);
}

$row = $db->sql_fetchrow($result);

$group_id = $row[’group_id’];

$db->sql_freeresult($result);
/**************************************************************************************************************/
/* У группы, в которую включен пользователь нет прав доступа */
if ( empty($group_id) )
{
message_die(GENERAL_ERROR, ‘Доступ не разрешён. Обратитесь к администратору.’, ”, ”, ”, ”);
}
/**************************************************************************************************************/
источник:http://phpbbguru.net/community/topic5618.html

Popularity: 5% [?]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Мой собственный rss-скрипт.Часть 1.

Первая часть,закачивание данных.

<?php

$link = ‘http://php.net’;

$result = ”;

function rss_get_content ($scheme,$host,$port,$path,$query)

{

global $url,$scheme,$host,$port,$path,$query,$result;

if (empty($host))

{

return false;

}

if ($scheme == ‘http’)

{

$port = isset($port) ? $port : 80;

}

else

{

$port = isset($port) ? $port : 443;

}

$path = (isset($path) ? $path : ‘/’);

if (function_exists(’curl_init’))

{

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $scheme.”://”.$host.$path.”?”.$query); //Строка,содержащая URL,который должен быть загружен.

curl_setopt($ch, CURLOPT_USERAGENT, ‘agent’);

curl_setopt($ch, CURLOPT_TIMEOUT, 30);

curl_setopt($ch, CURLOPT_REFERER, $scheme.”://”.$host.$path.”?”.$query);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_HEADER, true);

@curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);

curl_setopt($ch, CURLOPT_ENCODING, ‘gzip’);

$result = curl_exec($ch);

curl_close($ch);

if ($result) return $result; else return false;

}

else

{

$fp = fsockopen($host, $port, $errno, $errstr, 30);

if (!$fp) return false;

else

{

socket_set_timeout($fp, 5);

$headers = “GET $path HTTP/1.1\r\n”;
$headers .= “Host: $host\r\n”;
$headers .= “Content-type: application/x-www-form-urlencoded\r\n”;

$headers .= “User-Agent: agent\r\n”;
$headers .= “ACCEPT-ENCODING: gzip\r\n\r\n”;
$headers .= “Connection: close\r\n\r\n”;

}

fwrite($fp, $headers);
$result = ”;
while (!feof($fp))

{

$line = fgets($fp, 1024);
$result .= $line;

}

fclose($fp);
return $result;

}

}
$scheme = ‘http’;
$host = ‘php.net’;
$port = 80;
$path = ”;
$query = ”;
rss_get_content($scheme,$host,$port,$path,$query);
print_r($result);
?>

Popularity: 5% [?]

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Netvouz
  • DZone
  • ThisNext
  • MisterWong
  • Wists
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...

Хостинг сайта: EOMY.NET