Re: [PATCHv5 1/5] Scripts to install, delete and clear a MediaWiki

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Simon Cathebras <simon.cathebras@xxxxxxxxxxxxxxx> writes:

> +function get ($page_name = "") {
> +        $curl = curl_init();
> +        $page_name_add = "";
> +        if ($page_name != "") {
> +                $page_name_add = '?page='.$page_name;
> +        }
> +	$url = $GLOBALS['url'].$page_name_add;
> +        $tmp_cookie=$GLOBALS['tmp_cookie'];
> +        curl_setopt($curl, CURLOPT_COOKIEJAR, $tmp_cookie);
> +        curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
> +        curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
> +        curl_setopt($curl, CURLOPT_COOKIEFILE, $tmp_cookie);
> +        curl_setopt($curl, CURLOPT_HEADER, true);
> +        curl_setopt($curl, CURLOPT_URL,$url);
> +
> +        $page = curl_exec($curl);
> +        curl_close($curl);
> +        return $page;
> +}

Mixed tab/space indentation.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]