import vk_api
import time
vk_session = vk_api.VkApi('+7**********', '********')
vk_session.auth()
vk = vk_session.get_api()
for i in range(10):
try:
if s_id and code:
print(vk.wall.repost(object='wall-126227863_90727', captcha_sid=s_id, captcha_key=code))
del s_id
del code
else:
print(vk.wall.repost(object='wall-126227863_90727'))
except vk_api.Captcha as e:
s_id = e.sid
print(e.url)
code = input()
i = i-1
<?php
class home{
function index(){
echo "hello, this is home";
}
function notfound(){
echo "4O4, page not found ;)";
}
}
class account{
function login(){
echo "login page";
}
}
$explode = explode('/',$_SERVER['REQUEST_URI']);
$controllerClass = $explode[1];
$action = $explode[2];
if (count($explode) >= 3 && !empty($action)) {
if (!method_exists($controllerClass,$action)) {
call_user_func_array(["home","notfound"],[]);
} else {
call_user_func_array([$controllerClass,$action],[]);
}
} elseif (empty($controllerClass)) {
call_user_func_array(["home","index"],[]);
} else {
if (!method_exists("home",$controllerClass)) {
call_user_func_array(["home","notfound"],[]);
} else {
call_user_func_array(["home",$controllerClass],[]);
}
}
?>