当前位置: 首页>>代码示例>>PHP>>正文


PHP upfile函数代码示例

本文整理汇总了PHP中upfile函数的典型用法代码示例。如果您正苦于以下问题:PHP upfile函数的具体用法?PHP upfile怎么用?PHP upfile使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了upfile函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: parse_url

    $url = parse_url($up[1]);
    $page = geturl($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://filesflash.com/", $cookie, 0, 0, $_GET["proxy"], $pauth);
    if (!preg_match('#action="([^"]+)"#', $page, $act)) {
        html_error('Cannot get url upload.', 0);
    }
    if (!preg_match('#name="refcode"[\\r|\\n|\\s]+value="([^\\"]+)"#', $page, $usu)) {
        html_error('Cannot get reference user.', 0);
    }
    $code = id();
    //$ref = explode('userid=', $cookie);
    $post['refcode'] = $usu[1];
    $post['tag'] = '';
    $post['tags'] = '';
    $post['linkcode'] = '';
    $url = parse_url($act[1] . $code);
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://filesflash.com/', $cookie, $post, $lfile, $lname, 'uploadfile');
    ?>
				<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    preg_match('#"_top">([^><]+)<#', $upfiles, $dll);
    if (!empty($dll[1])) {
        $download_link = $dll[1];
    } else {
        html_error('Didn\'t find downloadlink!');
    }
    preg_match('#del/([^/"]+)"#', $upfiles, $del);
    if (!empty($del[1])) {
        $delete_link = 'http://filesflash.com/del/' . $del[1];
    } else {
        html_error('Didn\'t find deletelink!');
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:31,代码来源:filesflash.com_member.php

示例2: vk_doApiReq

         // $data['group_id'] = 1234567890; // ID of the community. (Positive Number)
         break;
 }
 $upsrv = vk_doApiReq($data);
 if (!empty($upsrv['error'])) {
     if ($upsrv['error'] == '204') {
         html_error('Your account is banned for uploading.');
     }
     html_error("{$data['method']} Error: [{$upsrv['error']['error_code']}] {$upsrv['error']['error_msg']}");
 }
 $post = array();
 $up_url = $upsrv['response']['upload_url'];
 // Uploading
 echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
 $url = parse_url($up_url);
 $upfiles = upfile($url['host'], defport($url), $url['path'] . ($url['query'] ? '?' . $url['query'] : ''), '', '', $post, $lfile, $lname, $type == 'video' ? 'video_file' : 'file', '', $_GET['proxy'], $pauth, 0, $url['scheme']);
 // Upload Finished
 echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
 is_page($upfiles);
 $upres = Get_Reply($upfiles);
 if (!empty($upres['error'])) {
     if (is_array($upres['error'])) {
         html_error("Upload {$type} Error: [{$upres['error']['error_code']}] " . $upres['error']['error_msg']);
     } else {
         if ($type == 'doc' && $upres['error'] == 'unknown error' && in_array($fExt, array('zip', 'zipx', 'rar', 'rar5', 'tar', 'gz', '7z', 'cab'))) {
             html_error("Upload {$type} Error: Possible Forbidden File Type Inside Compressed File.");
         } else {
             html_error("Upload {$type} Error: " . $upres['error']);
         }
     }
 }
开发者ID:Transcodes,项目名称:rapidleech,代码行数:31,代码来源:vk.com.php

示例3: html_error

<script>document.getElementById('login').style.display='none';</script>
<div id=info width=100% align=center>Retrieve upload ID</div>
<?php 
    if (!preg_match('%javascript:beginUpload\\(\'(.{32})\'\\);return%', $page, $sid)) {
        html_error('Upload ID not found');
    }
    if (!preg_match('%<input type="hidden" name="control" value="(.+)">%', $page, $control)) {
        html_error('Upload control-ID not found');
    }
    $url = parse_url('http://sharex.xpg.com.br/cgi-bin/upload.cgi?sid=' . $sid[1] . '&maxsize=314572800');
    ?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
    $post = array();
    $post['control'] = $control[1];
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 0, $cookies, $post, $lfile, $lname, "file");
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    if (!($dpage = cut_str($upfiles, "<script>window.top.location = '", "';</script>"))) {
        html_error('Couldn\'t find the upload links');
    }
    $Url = parse_url($dpage);
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, $cookies, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    preg_match('%(http://sharex\\.xpg\\.com\\.br/files/\\d+/.+\\..+)"%U', $page, $glink);
    preg_match('%(http://sharex\\.xpg\\.com\\.br/files/\\d+/\\d+[^\\.])"%U', $page, $dlink);
    $download_link = $glink[1];
    $delete_link = $dlink[1];
}
开发者ID:laiello,项目名称:rapidleech36b,代码行数:31,代码来源:sharex.xpg.com.br.php

示例4: parse_url

<?php 
$url = "http://www.sharehoster.de";
$Url = parse_url($url);
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$uid = $i = 0;
while ($i < 32) {
    $i++;
}
$uid += floor(rand() * 16) . "16";
$upfrom = "upload01.sharehoster.de";
$post["Upload"] = "Submit Query";
?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
$url = parse_url('http://' . $upfrom . '/upload.php?redirect=yes&X-Progress-ID=' . $uid);
$upfiles = upfile($url["host"], defport($url), $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://' . $upfrom . '/', 0, $post, $lfile, $lname, "userfile");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
preg_match_all('/Set-Cookie: (.*);/U', $page, $temp);
$cookie = $temp[1];
$cookies = implode(';', $cookie);
$locat = trim(cut_str($upfiles, 'Location:', "\n"));
$Url = parse_url($locat);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 'http://www.sharehoster.de/', $cookies, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$download_link = 'http://www.sharehoster.de/dl/' . cut_str($page, "filelist[0]['id'] = '", "'");
$delete_link = 'http://www.sharehoster.de/del/' . cut_str($page, "filelist[0]['id'] = '", "'") . "/" . cut_str($page, "filelist[0]['ident'] = '", "'");
// Made by Baking 16/10/2009 07:48
开发者ID:laiello,项目名称:rapidleech36b,代码行数:31,代码来源:sharehoster.de.php

示例5: curl_init

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $Url);
    curl_setopt($ch, CURLOPT_HEADER, 1);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 0);
    curl_setopt($ch, CURLOPT_POST, 1);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $lfile);
    curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0) Gecko/20100101 Firefox/4.0');
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*\/*;q=0.8', 'Accept-Language: de-de,de;q=0.8,en-us;q=0.5,en;q=0.3', 'Accept-Encoding: gzip, deflate', 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'Connection: keep-alive', 'Content-Type: application/x-www-form-urlencoded'));
    curl_setopt($ch, CURLOPT_REFERER, 'http://www.hellshare.com/');
    curl_setopt($ch, CURLOPT_COOKIE, $cookies);
    $data = curl_exec($ch);
    curl_close($ch);
    */
    $url = parse_url($action_path);
    $fpost["this_file_num"] = "0";
    $fpost["embedded_upload_results"] = "1";
    $fpost["upload_file_folder_0"] = "0";
    $fpost["updealer_id_0"] = "";
    $fpost["rau"] = "www.hellshare.com";
    $fpost["description_0"] = "";
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://www.hellshare.com/", 0, $fpost, $lfile, $lname, "upfile_0");
    preg_match('#http:\\/\\/www\\.hellshare\\.com\\/uu_finished_pro\\.php\\?rnd_id=([A-Za-z0-9]+)\\&tmp_sid=([0-9]+)\\/([a-z0-9]+)#', $upfiles, $infolink);
    $Url = parse_url('http://www.hellshare.com/hs_upload_process_pro.php?tmp_sid=' . $infolink[2] . '/' . $infolink[3] . '');
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://www.hellshare.com/", $cookies, 0, 0, $_GET["proxy"], $pauth);
    preg_match('#target="_top">(http:\\/\\/download\\.hellshare\\.com\\/.+)<\\/a>#', $page, $dllink);
    ?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    $download_link = $dllink[1];
}
开发者ID:mewtutorial,项目名称:RapidTube,代码行数:31,代码来源:hellshare.com_member.php

示例6: strtoupper

        return $ret;
    }
    $UID = strtoupper(base_convert(time() . rndStr(3, true), 10, 16)) . '_' . rndStr(40);
    $post = array();
    $post['MAX_FILE_SIZE'] = cut_str($page, 'name="MAX_FILE_SIZE" value="', '"');
    $post['owner'] = cut_str($page, 'name="owner" type="hidden" value="', '"');
    $post['pin'] = cut_str($page, 'name="pin" type="hidden" value="', '"');
    $post['base'] = cut_str($page, 'name="base" type="hidden" value="', '"');
    $post['host'] = cut_str($page, 'name="host" type="hidden" value="', '"');
    $up_url = "http://{$up[1]}/marker={$UID}";
    textarea($up_url, 0, 0, 1);
    ?>
<script type="text/javascript">document.getElementById('info').style.display='none';</script>
<?php 
    $url = parse_url($up_url);
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://letitbit.net/', $cookie, $post, $lfile, $lname, "file0");
    ?>
<script type="text/javascript">document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    $page = geturl("letitbit.net", 80, "/acupl_proxy.php?srv={$up[1]}&uid={$UID}", 'http://letitbit.net/', $cookie, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    if (!preg_match('@"post_result":\\s*"(http://[^\\"]+)"@i', $page, $rd)) {
        html_error("Error: Redirect not found.", 0);
    }
    $url = parse_url($rd[1]);
    $page = geturl($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://letitbit.net/', $cookie, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    if (preg_match('@https?://[^/|\\"|\'|<|\\r|\\n]+/download/[^\\"|\'|<|\\r|\\n]+@i', $page, $lnk)) {
        $download_link = $lnk[0];
        if (preg_match('@https?://[^/|\\"|\'|<|\\r|\\n]+/download/delete[^\\"|\'|<|\\r|\\n]+@i', $page, $dlnk)) {
开发者ID:laiello,项目名称:rapidleech36b,代码行数:31,代码来源:letitbit.net_member.php

示例7: html_error

    if (!($xfss = cut_str($page, 'name="sess_id" value="', '"'))) {
        html_error("Error: Cannot find session value.", 0);
    }
    $post['upload_type'] = "file";
    $post['sess_id'] = $xfss;
    $post['srv_tmp_url'] = urlencode(cut_str($page, 'name="srv_tmp_url" value="', '"'));
    $post['link_rcpt'] = "";
    $post['link_pass'] = "";
    $post['tos'] = 1;
    $post['submit_btn'] = " Upload! ";
    $up_url = $up[1] . "?upload_id={$uid}&js_on=1&utype=" . cut_str($page, "var utype='", "'") . "&upload_type=file";
    ?>
<script type="text/javascript">document.getElementById('info').style.display='none';</script>
<?php 
    $url = parse_url($up_url);
    $upfiles = upfile($url["host"], 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), 'http://hostingbulk.com/', $cookie, $post, $lfile, $lname, "file_0");
    ?>
<script type="text/javascript">document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    $post = array();
    $post['op'] = "upload_result";
    $post['fn'] = cut_str($upfiles, "'fn'>", "<");
    $post['st'] = "OK";
    $page = geturl("hostingbulk.com", 80, "/", $up_url, $cookie, $post, 0, $_GET["proxy"], $pauth);
    is_page($page);
    if (preg_match('@(https?://(?:www\\.)?hostingbulk\\.com/\\w+)(\\.html)?\\?killcode=\\w+@i', $page, $lnk)) {
        $download_link = $lnk[1];
        $delete_link = $lnk[0];
    } else {
        html_error("Download link not found.", 0);
开发者ID:laiello,项目名称:rapidleech36b,代码行数:31,代码来源:hostingbulk.com_member.php

示例8: parse_url

        $post[''] = '';
        $Url = parse_url("http://bayfiles.com/ajax_login");
        $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://bayfiles.com/\r\nX-Requested-With: XMLHttpRequest", 0, $post, 0, $_GET["proxy"], $pauth);
        is_page($page);
        $cookie = GetCookies($page);
        is_notpresent($page, '{"reload":true}', "Login Failed");
    } else {
        echo "<b><center>Login not found or empty, using non member upload.</center></b>\n";
    }
    ?>
                <script type='text/javascript'>document.getElementById('login').style.display='none';</script>
                <div id='info' width='100%' align='center'>Retrive upload ID</div>
                <?php 
    $Url = parse_url("http://bayfiles.com/ajax_upload?_=" . microtime(true));
    $page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), "http://bayfiles.com/\r\nX-Requested-With: XMLHttpRequest", $cookie, 0, 0, $_GET["proxy"], $pauth);
    is_page($page);
    $upload_url = str_replace("\\", "", cut_str($page, '"upload_url":"', '"'));
    $url = parse_url($upload_url);
    ?>
                <script type='text/javascript'>document.getElementById('info').style.display='none';</script>
                <?php 
    $upagent = "Mozilla/5.0 (Windows NT 5.1; rv:6.0) Gecko/20100101 Firefox/6.0";
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://bayfiles.com/", $cookie, 0, $lfile, $lname, "file", "", $_GET["proxy"], $pauth, $upagent);
    ?>
                <script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>
                <?php 
    is_page($upfiles);
    $download_link = str_replace("\\", "", cut_str($upfiles, '"downloadUrl":"', '"'));
    $delete_link = str_replace("\\", "", cut_str($upfiles, '"deleteUrl":"', '"'));
}
//by vdhdevil
开发者ID:mewtutorial,项目名称:RapidTube,代码行数:31,代码来源:bayfiles.com_member.php

示例9: html_error

    }
    if (!preg_match('#name="sess_id"[\\r|\\n|\\s]+value="([^"]+)"#', $page, $sid)) {
        html_error('Cannot get session id.', 0);
    }
    if (!preg_match('#name="srv_tmp_url"[\\r|\\n|\\s]+value="([^"]+)"#', $page, $tmp)) {
        html_error('Cannot get tmp url.', 0);
    }
    $uid = uid();
    $url = parse_url($up[1] . $uid . '&js_on=1&utype=' . $utype[1] . '&upload_type=file');
    $post["upload_type"] = "file";
    $post["sess_id"] = $sid[1];
    $post["srv_tmp_url"] = $tmp[1];
    $post["link_rcpt"] = '';
    $post["link_pass"] = '';
    $post['tos'] = '1';
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://grupload.com/?op=registration", $cookie, $post, $lfile, $lname, "file_0");
    ?>

<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    preg_match_all("#>([^><]+)<#", $upfiles, $dl);
    if ($dl[1][1] != 'OK') {
        html_error('Erro in upload');
    }
    $post['fn'] = $dl[1][0];
    $post['st'] = 'OK';
    $post['op'] = 'upload_result';
    $page = geturl("grupload.com", 80, "/", 0, $cookie, $post, 0, $_GET["proxy"]);
    if (!empty($dl[1][0])) {
        $download_link = 'http://grupload.com/' . $dl[1][0] . '/' . $lname;
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:31,代码来源:grupload.com_member.php

示例10: is_array

 //其中..与/开头都是不允许的
 if (!ereg("^[0-9a-z_/]+\$", $dir) || ereg("^/", $dir)) {
     $dir = "other";
 }
 $updir = '';
 $path = "{$updir}/{$dir}";
 $array[name] = is_array($fileData) ? $_FILES[fileData][name] : $fileData_name;
 require_once ROOT_PATH . "inc/class.chinese.php";
 $cnvert = new Chinese("UTF8", "GB2312", $array[name], ROOT_PATH . "./inc/gbkcode/");
 $array[name] = $cnvert->ConvertIT();
 $array[path] = $webdb[updir] . "/" . $path;
 $array[size] = is_array($fileData) ? $_FILES[fileData][size] : $fileData_size;
 //$array[updateTable]=1;	//统计用户上传的文件占用空间大小
 $lfjuid = $userdb[uid];
 //处理上传的文件名标志
 $filename = upfile(is_array($fileData) ? $_FILES[fileData][tmp_name] : $fileData, $array);
 $newfile = "{$webdb['www_url']}/{$webdb['updir']}/{$dir}/{$filename}";
 //插入数据,关闭层
 echo '<html>';
 echo '<head>';
 echo '<title>Insert Image</title>';
 echo '<meta http-equiv="content-type" content="text/html; charset=gb2312">';
 echo '</head>';
 echo '<body>';
 if (!$_GET[Ctype]) {
     echo "<SCRIPT LANGUAGE=\"JavaScript\">parent.KindInsertImage('{$newfile}','{$imgWidth}','{$imgHeight}','{$imgBorder}','{$imgTitle}','{$imgAlign}','{$imgHspace}','{$imgVspace}')</SCRIPT>";
 } else {
     echo "<SCRIPT LANGUAGE=\"JavaScript\">parent.KindInsertImageP8FLV('{$newfile}','{$imgWidth}','{$imgHeight}','{$_GET['Ctype']}')</SCRIPT>";
 }
 echo '</body>';
 echo '</html>';
开发者ID:GHubgenius,项目名称:qbbj,代码行数:31,代码来源:upfile_eweb.php

示例11: cut_str

 $post['sess_id'] = cut_str($page, 'name="sess_id" value="', '"');
 $post['srv_tmp_url'] = cut_str($page, 'name="srv_tmp_url" value="', '"');
 $post['link_rcpt'] = '';
 $post['link_pass'] = '';
 $post['file_0_descr'] = 'Uploaded by Rapidleech.';
 $post['file_0_public'] = '1';
 $post['tos'] = '1';
 $post['submit_btn'] = ' Upload! ';
 $up_url = $up[1] . "?upload_id={$uid}&js_on=1";
 if (!$IsXfsFree) {
     $up_url .= '&utype=' . cut_str($page, "var utype='", "'") . '&upload_type=file';
 }
 // Uploading
 echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
 $url = parse_url($up_url);
 $upfiles = upfile($url['host'], defport($url), $url['path'] . (!empty($url['query']) ? '?' . $url['query'] : ''), $referer, $cookie, $post, $lfile, $lname, 'file_0', '', $_GET['proxy'], $pauth);
 // Upload Finished
 echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>\n";
 is_page($upfiles);
 if (!$IsXfsFree) {
     $post = array();
     $post['op'] = 'upload_result';
     if (!preg_match('@name=[\'\\"]fn[\'\\"](?:(?:[\\s\\t]*>)|(?:[\\s\\t]*value=[\'\\"]))([^\'\\"<>]+)@i', $upfiles, $fn)) {
         html_error('Error: fn value not found.');
     }
     $post['fn'] = trim($fn[1]);
     $post['st'] = 'OK';
 } else {
     $page = cut_str($upfiles, '<Form name=\'F1\'', '</Form>');
     if (!preg_match_all('@<textarea [^<>]*name=\'([^\']+)\'[^<>]*>([^>]*)</textarea>@i', $page, $textareas)) {
         html_error('Error: upload_result data not found.');
开发者ID:laiello,项目名称:rapidleech36b,代码行数:31,代码来源:donevideo.com.php

示例12: html_error

        html_error('Cannot get form action.', 0);
    }
    if (!preg_match('#name="sess_id"[\\r|\\n|\\s]+value="([^"]+)"#', $page, $sid)) {
        html_error('Cannot get form session id.', 0);
    }
    if (!preg_match('#name="srv_tmp_url"[\\r|\\n|\\s]+value="([^"]+)"#', $page, $srv)) {
        html_error('Cannot get form srv url.', 0);
    }
    $url = parse_url($act[1]);
    $post["upload_type"] = 'file';
    $post['sess_id'] = $sid[1];
    $post['srv_tmp_url'] = $srv[1];
    $post['link_rcpt'] = '';
    $post['link_pass'] = '';
    $post['tos'] = '1';
    $upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://www.ok2upload.com/", $cookie, $post, $lfile, $lname, "file_1");
    ?>
					<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
    is_page($upfiles);
    preg_match("#[\r|\n|\\s]+Location:[\r|\n|\\s]+([^[:space:]]+)#", $upfiles, $dlink);
    $link = split('[&=]', $dlink[1]);
    if (!empty($link[2])) {
        $download_link = 'http://www.ok2upload.com/' . $link[2];
    } else {
        html_error("Didn't find download link!");
    }
    $url = parse_url($dlink[1]);
    $page = geturl($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), "http://www.ok2upload.com/", $cookie, 0, 0, $_GET["proxy"], $pauth);
    preg_match('#\\?killcode=([0-9a-zA-Z]+)#', $page, $dele);
    if (!empty($dele[1])) {
开发者ID:sayedharounokpay,项目名称:LikesPlanet,代码行数:31,代码来源:ok2upload.com_member.php

示例13: html_error

 } else {
     html_error("Login Failed: Email or Password are empty. Please check login data.", 0);
 }
 // Retrive upload ID
 echo "<script type='text/javascript'>document.getElementById('login').style.display='none';</script>\n<div id='info' width='100%' align='center'>Retrive upload ID</div>\n";
 $page = geturl("www.2shared.com", 80, "/", $referer, $cookie, 0, 0, $_GET["proxy"], $pauth);
 is_page($page);
 if (!preg_match('@action="(https?://[^/|\\"|\\<|\\>]+/[^\\"|\\<|\\>]+)"@i', $page, $up)) {
     html_error('Error: Cannot find upload server.', 0);
 }
 $post = array('mainDC' => cut_str($page, 'name="mainDC" value="', '"'));
 $up_url = $up[1];
 // Uploading
 echo "<script type='text/javascript'>document.getElementById('info').style.display='none';</script>\n";
 $url = parse_url($up_url);
 $upfiles = upfile($url["host"], 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $referer, $cookie, $post, $lfile, $lname, 'fff', '', $_GET["proxy"], $pauth);
 // Upload Finished
 echo "<script type='text/javascript'>document.getElementById('progressblock').style.display='none';</script>";
 is_page($upfiles);
 if (stripos($upfiles, 'Your upload has successfully completed') === false) {
     html_error('Error at upload', 0);
 }
 $page = geturl("www.2shared.com", 80, "/uploadComplete.jsp?" . $url["query"], $referer, $cookie, 0, 0, $_GET["proxy"], $pauth);
 is_page($page);
 if (preg_match('@action="(https?://[^/|\\"|\\<|\\>]+/[^\\"|\\<|\\>]+)"[^\\<|\\>]*name="downloadForm@i', $page, $lnk)) {
     $download_link = $lnk[1];
     if (preg_match('@action="(https?://[^/|\\"|\\<|\\>]+/[^\\"|\\<|\\>]+)"[^\\<|\\>]*name="adminForm@i', $page, $admlnk)) {
         $adm_link = $admlnk[1];
     }
 } else {
     html_error("Download link not found.", 0);
开发者ID:mewtutorial,项目名称:RapidTube,代码行数:31,代码来源:2shared.com.php

示例14: geturl

$ref = 'http://www.fast-load.net/';
$page = geturl("www.fast-load.net", 80, "/", "", 0, 0, 0, "");
is_page($page);
//            $cook = trim(cut_str($page,"Cookie:",";"));
$ifurl = cut_str($page, '<iframe', '</iframe>');
$ifurl = cut_str($ifurl, 'src="', '"');
if (!$ifurl) {
    html_error('Error get iframe url');
}
$Url = parse_url($ifurl);
$page = geturl($Url["host"], defport($Url), $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$servid = cut_str($page, 'name="serverid" value="', '"');
$post['user'] = '';
$post['password'] = '';
$post['ref'] = '';
$post['serverid'] = $servid ? $servid : '21';
?>
	<script>document.getElementById('info').style.display='none';</script>
<?php 
$upfiles = upfile($Url["host"], defport($Url), "/upload.php", "", 0, $post, $lfile, $lname, "gfile");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
//            is_notpresent($upfiles,"ok","Error Upload File!".$upfiles);
$tmp = cut_str($upfiles, "Download", true);
$download_link = cut_str($tmp, 'value="', '"');
$tmp = cut_str($tmp, "Delete", true);
$delete_link = cut_str($tmp, 'value="', '"');
// sert 19.07.2008
开发者ID:laiello,项目名称:rapidleech36b,代码行数:31,代码来源:fast-load.net.php

示例15: parse_url

<?php 
$url = "http://www.shragle.com/";
$Url = parse_url($url);
$page = geturl($Url["host"], $Url["port"] ? $Url["port"] : 80, $Url["path"] . ($Url["query"] ? "?" . $Url["query"] : ""), 0, 0, 0, 0, $_GET["proxy"], $pauth);
is_page($page);
$up = cut_str($page, 'name="upload" action="', '"');
$maxsize = cut_str($page, 'name="MAX_FILE_SIZE" value="', '"');
$uid = cut_str($page, 'name="UPLOAD_IDENTIFIER" value="', '"');
$fpost["MAX_FILE_SIZE"] = $maxsize;
$fpost['UPLOAD_IDENTIFIER'] = $uid;
$fpost["description"] = "";
$fpost['recipient'] = "";
$fpost['sender'] = "";
$fpost['x'] = mt_rand(1, 100);
$fpost['y'] = mt_rand(1, 50);
?>
<script>document.getElementById('info').style.display='none';</script>
<?php 
$url = parse_url($up);
$upfiles = upfile($url["host"], $url["port"] ? $url["port"] : 80, $url["path"] . ($url["query"] ? "?" . $url["query"] : ""), $up, 0, $fpost, $lfile, $lname, "file_1");
?>
<script>document.getElementById('progressblock').style.display='none';</script>
<?php 
is_page($upfiles);
$id = cut_str($upfiles, 'name="files" value="', '"');
$upost['files'] = $id;
$page = geturl("www.shragle.com", 80, "/", "http://www.shragle.com/", 0, $upost, 0, "");
is_page($page);
$download_link = cut_str($upfiles, 'Link: <a href="', '"');
$delete_link = cut_str($upfiles, 'sch-Link: <a href="', '"');
// Made by Baking 26/09/2009 13:44
开发者ID:laiello,项目名称:rapidleech36b,代码行数:31,代码来源:shragle.com.php


注:本文中的upfile函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。