
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class OKCupid extends CI_Controller {
var $curUser;
function __CONSTRUCT() {
parent::Controller();
$this->curUser->load($this->session->get_userInfo('loggedUser'));
}
public function index() {
$prettyGirl = '*****';
if ($this->curUser->getResponceCount($prettyGirl) < 0) {
if ($this->curUser->timeSinceLastMessage($prettyGirl) > (time() + (24 * 60 * 60))) {
if ($this->_attempt($prettyGirl)) { $this->layout->view('wait-a-bit'); } else {
$this->curUser->setInfo(array('dinner' => 'pot noodle', 'telivision'=>'Come Dine With Me', 'mood' => 'gutted'));
$this->layout->view('exit');
}
}
} else {
if ($this-> curUser->getLatestResponceInfo($prettyGirl, 'mood') == 'possitive') {
$this->layout->add_message('WOO HOO');
} else {
$this->layout->add_message('Never mind dude, plenty of fish and all that');
}
$this->layout->view('echo');
}
}
private function _attempt($username) {
$you = new User('username', $username);
if ($me -> getMsgAttempts($you) < 1) {
$this->layout->add_message("Remember to play it cool, give it a day or soo");
$this->messaging->($me, $you, "Hello !", "Hi, you seem cool, how are you?");
$this->curUser->addMsgAttempt();
}elseif ( $me -> getMsgAttempts($you) > 0 && $me -> getMsgAttempts($you) < 2) {
$this->layout->add_message("OK, but chill out, maybe she's busy or something");
$this->messaging->($me, $you, "Alright there?", "I'm not sure if you got my last message, maybe something messed up, anyway, hello, how are you doing?");
$this->curUser->addMsgAttempt();
}else {
$this->layout->add_message("She's not in interested");
return false;
}
return true;
}
}
?>
( , Sun 12 Jun 2011, 12:46, archived)

And saying to ladies TOUCH MY MATRIX OF LEADERSHIP is a 'smooth move'
( , Sun 12 Jun 2011, 12:53, archived)