Skip to content

Instantly share code, notes, and snippets.

<?php
/* MetaWeblogAPI - A API for Bo-Blog
Coded & License : emanh
*/
function blogger_getUsersBlogs ($values) {
global $config;
$userdetail=check_user ($values['username'], $values['password']);
$value_body=array('url'=>$config['blogurl'], 'blogid'=>$values['appkey'], 'blogName'=>$config['blogname']);
$array_body[0]=make_xml_piece ("struct", $value_body);
$xml_content=make_xml_piece("array", $array_body);
<?php
function curl($url) {
$ch = @curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
$head[] = "Connection: keep-alive";
$head[] = "Keep-Alive: 300";
$head[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$head[] = "Accept-Language: en-us,en;q=0.5";
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.124 Safari/537.36');
curl_setopt($ch, CURLOPT_HTTPHEADER, $head);
<?php
/*
WildPHP - a modular and easily extendable IRC bot written in PHP
Copyright (C) 2015 WildPHP
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
<?php
/*
WildPHP - a modular and easily extendable IRC bot written in PHP
Copyright (C) 2015 WildPHP
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
<?php
/*
WildPHP - a modular and easily extendable IRC bot written in PHP
Copyright (C) 2015 WildPHP
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
<?php
require __DIR__ . '/Crimp.php';
$TotalTime = 0.0;
$StartTime = microtime( true );
$Crimp = new Crimp( 'CrimpCallback' );
$Crimp->Urls =
[
<?php
/**
* A dead simple multi curl implementation.
*
* GitHub: {@link https://github.com/xPaw/Crimp.php}
* Website: {@link https://xpaw.me}
*
* @author Pavel Djundik
* @license MIT
*/
<?php
/**
* Fast and easy way to access Mojang API
*
* Can be used to get Mojang status, UUID and username conversions, names history, and fetch skin.
* Usually, if NULL is returned, it means empty, and FALSE means failure
* Also, UUIDs returned are minified (without dashes)
*
* @see http://wiki.vg/Mojang_API