This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?if(count($groups) == 0) :?> | |
<div class="home_note"> | |
<div class="home_bg"> | |
<div class="inner_padding"> | |
<div class="clear"></div> | |
<h1 class="uni">WHAT'S NEXT?</h1> | |
<p>As you and fellow students use UCROO relevant information will appear in this Home Feed. | |
In the mean time here are a few things you can do to get started.</p><br> | |
<ul> | |
<li>Check out the <?=anchor('classes','classes')?> - try posting a question!</li> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
$friends_friend = repo('Users')->findOneBy(array('id'=>$notification->get_entity_id())); | |
$connected = array(); | |
$displayed = array(); //used to prevent multiple classes being displayed | |
foreach($all_notifications as $connected_to) | |
{ | |
// var_doctrine($connected_to); | |
// die(); | |
$fid = $connected_to->get_user_from_id(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class KingOfHearts extends CI_Controller { | |
public function __construct() | |
{ | |
parent::__construct(); | |
$this->template->title('The King of Hearts - A short story about whales and seagulls'); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
|-------------------------------------------------------------------------- | |
| Base Site URL | |
|-------------------------------------------------------------------------- | |
| | |
| URL to your CodeIgniter root. Typically this will be your base URL, | |
| WITH a trailing slash: | |
| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RewriteEngine on | |
# RewriteCond $1 !^(index\.php|images|assets|robots\.txt) | |
# RewriteRule ^(.*)$ index.php/$1 [L] | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
### Canonicalize codeigniter URLs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function send_timetable_add_class($event, $calendar) | |
{ | |
echo "send_timetable_add_class <br/>"; | |
$user_from = $event->get_user(); | |
$unit_info_id = $calendar->getUnit_info_id(); | |
$qb = repo('Activity')->createQueryBuilder('a'); | |
$qb->where('a.user_from_id = :ufid') | |
->andWhere('a.type = :type') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function _compare_timetable_events(models\Calendar $event_one, models\Calendar $event_two) | |
{ | |
if ($event_one->getUnit_id() == $event_two->getUnit_id() | |
&& $event_one->getType() == $event_two->getType() | |
&& $event_one->getClass_type() == $event_two->getClass_type() | |
&& $event_one->getTime_from() == $event_two->getTime_from() | |
&& $event_one->getTime_to() == $event_two->getTime_to() | |
&& $event_one->getTime_day() == $event_two->getTime_day() | |
) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function spawnRandomBalloons(te:TimerEvent):void | |
{ | |
var balloons:Array = [new mcBalloonPink(), new mcBalloonGreen(), new mcBalloonRed()]; | |
var rndm:int = Math.floor(Math.random() * 3); | |
trace(balloons[rndm]); | |
trace(balloons); | |
var theBalloon = balloons[rndm]; | |
theBalloon.x = 450; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SGPro extends SGProPlugin { | |
function __construct() { | |
$url = explode("&", $_SERVER['REQUEST_URI']); | |
$this -> url = $url[0]; | |
$this -> register_plugin('slideshow-gallery-pro', __FILE__); | |
//WordPress action hooks | |
$this -> add_action('admin_menu'); | |
$this -> add_action('admin_head'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Use PHP5 Single php.ini as default | |
AddHandler application/x-httpd-php5s .php | |
RewriteEngine On | |
RewriteBase / | |
#For martinsjastad.com | |
# automatically redirect user to www.martinsjastad.com | |
RewriteCond %{HTTP_HOST} !^www\.martinsjastad\.com [NC] | |
RewriteRule ^(.*) http://www.martinsjastad.com/$1 [L,R=301] |