Zaktualizowano dane połączenia FTP oraz dodano nowe klasy w autoload, a także zmodyfikowano logikę w klasie Cron dla dynamicznego ustawiania głębokości zapytań.

This commit is contained in:
2025-12-07 22:39:06 +01:00
parent 60c7119858
commit 009141455c
2 changed files with 140 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
{ {
"ftp://dapro25624.serwervps.pl@www@rank24.pl": { "ftp://host700513.hostido.net.pl@www@rank24.pl": {
"public_html": { "public_html": {
"ajax-check.php": { "ajax-check.php": {
"type": "-", "type": "-",
@@ -19,11 +19,130 @@
"lmtime": 0, "lmtime": 0,
"modified": false "modified": false
}, },
"autoload": {}, "autoload": {
"class.Cron.php": {
"type": "-",
"size": 17039,
"lmtime": 1765140268635,
"modified": false
},
"class.DataBase.php": {
"type": "-",
"size": 6873,
"lmtime": 0,
"modified": false
},
"class.DataBrowse.php": {
"type": "-",
"size": 16829,
"lmtime": 0,
"modified": false
},
"class.DataEdit.php": {
"type": "-",
"size": 10221,
"lmtime": 0,
"modified": false
},
"class.FileCache.php": {
"type": "-",
"size": 1259,
"lmtime": 0,
"modified": false
},
"class.GoogleRank.php": {
"type": "-",
"size": 12236,
"lmtime": 0,
"modified": false
},
"class.GoogleScraper.php": {
"type": "-",
"size": 4288,
"lmtime": 0,
"modified": false
},
"class.GoogleSite.php": {
"type": "-",
"size": 10223,
"lmtime": 0,
"modified": false
},
"class.Html.php": {
"type": "-",
"size": 2096,
"lmtime": 0,
"modified": false
},
"class.Paging.php": {
"type": "-",
"size": 844,
"lmtime": 0,
"modified": false
},
"class.SEOMixer.php": {
"type": "-",
"size": 1117,
"lmtime": 0,
"modified": false
},
"class.S.php": {
"type": "-",
"size": 20136,
"lmtime": 0,
"modified": false
},
"class.Tpl.php": {
"type": "-",
"size": 1701,
"lmtime": 0,
"modified": false
},
"controls": {},
"factory": {},
"opd.class.php": {
"type": "-",
"size": 12928,
"lmtime": 0,
"modified": false
},
"opd.debug.php": {
"type": "-",
"size": 5392,
"lmtime": 0,
"modified": false
},
"opd.statement.php": {
"type": "-",
"size": 15898,
"lmtime": 0,
"modified": false
},
"RestClient3.php": {
"type": "-",
"size": 8798,
"lmtime": 0,
"modified": false
},
"RestClient.php": {
"type": "-",
"size": 7406,
"lmtime": 0,
"modified": false
},
"savant3": {},
"Savant3.php": {
"type": "-",
"size": 29087,
"lmtime": 0,
"modified": false
},
"view": {}
},
"config.php": { "config.php": {
"type": "-", "type": "-",
"size": 1689, "size": 1699,
"lmtime": 1734013415427, "lmtime": 0,
"modified": false "modified": false
}, },
"cron.php": { "cron.php": {
@@ -61,7 +180,7 @@
".htaccess": { ".htaccess": {
"type": "-", "type": "-",
"size": 421, "size": 421,
"lmtime": 1734037349168, "lmtime": 0,
"modified": false "modified": false
}, },
"index.php": { "index.php": {
@@ -91,6 +210,7 @@
"modified": false "modified": false
}, },
"resources": {}, "resources": {},
"temp": {},
"templates": {}, "templates": {},
"updates": {} "updates": {}
} }

View File

@@ -261,26 +261,37 @@ class Cron
{ {
$client = new RestClient( 'https://api.dataforseo.com/', null, 'pyziak84@gmail.com', '0p4rYWDNoK63eUUw' ); $client = new RestClient( 'https://api.dataforseo.com/', null, 'pyziak84@gmail.com', '0p4rYWDNoK63eUUw' );
$last_position = $mdb -> get( 'pro_rr_phrases_positions', 'position', [ 'AND' => [ 'phrase_id' => $row['id'] ], 'ORDER' => [ 'date' => 'DESC' ] ] );
if ( $last_position <= 10 ) {
$depth = 30;
} elseif ( $last_position <= 30 ) {
$depth = 50;
} else {
$depth = 100;
}
if ( $row['localization'] and (int)$row['localization'] ) if ( $row['localization'] and (int)$row['localization'] )
{ {
$post_array[0] = array( $post_array[0] = array(
"language_name" => "Polish", "language_code" => "pl",
"location_code" => $row['localization'], "location_code" => $row['localization'],
"keyword" => mb_convert_encoding( $row['phrase'], "UTF-8" ), "keyword" => mb_convert_encoding( $row['phrase'], "UTF-8" ),
"priority" => 1, "priority" => 1,
'postback_data' => 'advanced', 'postback_data' => 'advanced',
'postback_url' => 'http://www.rank24.pl/dsf.php?d4s-id=$id' 'postback_url' => 'http://www.rank24.pl/dsf.php?d4s-id=$id',
'depth' => $depth
); );
} }
else else
{ {
$post_array[0] = array( $post_array[0] = array(
"language_name" => "Polish", "language_code" => "pl",
"location_code" => $row['localization'], "location_code" => $row['localization'],
"keyword" => mb_convert_encoding( $row['phrase'], "UTF-8" ), "keyword" => mb_convert_encoding( $row['phrase'], "UTF-8" ),
"priority" => 1, "priority" => 1,
'postback_data' => 'advanced', 'postback_data' => 'advanced',
'postback_url' => 'http://www.rank24.pl/dsf.php?d4s-id=$id' 'postback_url' => 'http://www.rank24.pl/dsf.php?d4s-id=$id',
'depth' => $depth
); );
} }