예제 #1
0
파일: update.php 프로젝트: rmccue/Murray
<?php

include('./library/Murray.php');

set_time_limit(0);
Murray_Sources::update();
예제 #2
0
<?php

// Config

Murray::$url = 'http://localhost/';
Murray::$db = new PDO('mysql:host=localhost;dbname=db', 'root', 'password');


// Load sources

Murray_Sources::load('Murray_Source_GitHub', 'user');
Murray_Sources::load('Murray_Source_Reddit', 'user');
Murray_Sources::load('Murray_Source_LastFM', 'user');
Murray_Sources::load('Murray_Source_Twitter', 'user');
예제 #3
0
파일: Twitter.php 프로젝트: rmccue/Murray
	public function __construct($user) {
		$this->user = $user;

		Murray_Sources::register('twitter', $this);
	}
예제 #4
0
파일: Entry.php 프로젝트: rmccue/Murray
	public function get_source() {
		return Murray_Sources::get($this->source);
	}