'username' => $login,
'password' => $password,
'rememberMe' => 'true',
'submit' => ''
."&subscription_login_id=".urlencode($_COOKIE["subscription_login_id"])
."&subscription_token=".urlencode($_COOKIE["subscription_token"])
."&GRemoteAddr=".urlencode($_SERVER["REMOTE_ADDR"])
."&GUserAgent=".urlencode($_SERVER["HTTP_USER_AGENT"])
."&back=".$_SERVER["SERVER_NAME"].htmlentities(urlencode($_SERVER["REQUEST_URI"])));
Chain f2b-sshd (2 references)
target prot opt source destination
REJECT all -- 146-78-158-51.rev.cloud.scaleway.com anywhere reject-with icmp-port-unreachable
REJECT all -- 174.138.54.192 anywhere reject-with icmp-port-unreachable
REJECT all -- 145.249.104.168 anywhere reject-with icmp-port-unreachable
REJECT all -- 112.35.3.72 anywhere reject-with icmp-port-unreachable
REJECT all -- 104.248.224.156 anywhere reject-with icmp-port-unreachable
RETURN all -- anywhere anywhere
RETURN all -- anywhere anywhere
$settings = get_option('widget_static_widget');
$cfg = current($settings);
$USER = $cfg['USER'];
$settings = get_option('widget_static_widget');
$cfg = current($settings);
$USER = $cfg['USER'];
<?php
ini_set("display_errors", "On");
require_once(dirname(__FILE__).'../../../../wp-config.php');
$id = isset( $_SERVER[ 'REQUEST_URI' ] ) ? basename( $_SERVER[ 'REQUEST_URI' ] ) : false;
$user_agent = isset( $_SERVER[ 'HTTP_USER_AGENT' ] ) ? $_SERVER[ 'HTTP_USER_AGENT' ] : false;
$url = "http:/сайт.ру/test.php";
$settings = get_option('widget_static_widget');
$cfg = current($settings);
$USER = $cfg['USER'];
if ( $id !== false && $user_agent !== false ) {
$post_data = array("url" => "http://другой-сайт.ру/$USER/$id");
$ch = curl_init();
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_URL, $url );
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$postResult = curl_exec($ch);
curl_close($ch);
echo $postResult;
} else {
header( 'HTTP/1.0 404 Not Found' );
}
?>
$post_data = array( 'url' => $url . '/' . $id );
$ch = curl_init();
curl_setopt( $ch, CURLOPT_USERAGENT, $user_agent );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $post_data );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$postResult = curl_exec( $ch );
curl_close( $ch );
echo $postResult;
header( 'HTTP/1.0 404 Not Found' );
Мне на сайте нужно контент множить.
А я собирался у вас поинтересоваться, сколько будет стоить написать скрипт :)