PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

Adam's Recent Pastes

"Re: #2194" (PHP) view

  1. <?php
  2.  
  3.  
  4.     # Plugins
  5.     $sql_plugin = mysql_query('SELECT * FROM `plugins` WHERE `status` = 1 ;');
  6.     while($out_plugin = mysql_fetch_assoc($sql_plugin)):
  7.         require_once 'plugins/'.$out_plugin['function'].'.php';
  8.         $plugin[$out_plugin['function']]  = new $out_plugin['function']($tools->string,$tools->user,$out_plugin['id']);
  9.         $plugin[$out_plugin['function']]->general();
  10.     endwhile;

"Untitled" (PHP) view

  1.     # Plugins
  2.     $sql_plugin = mysql_query('SELECT * FROM `plugins` WHERE `status` = 1 ;');
  3.     while($out_plugin = mysql_fetch_assoc($sql_plugin)):
  4.         require_once 'plugins/'.$out_plugin['function'].'.php';
  5.         $plugin[$out_plugin['function']]  = new $out_plugin['function']($tools->string,$tools->user,$out_plugin['id']);
  6.         $plugin[$out_plugin['function']]->general();
  7.     endwhile;

"Untitled" (PHP) view

  1. <?php
  2.  
  3. /*
  4.     Wized IRC Bot
  5.     Adam McPeake
  6.   www.labs.wized.net
  7.    
  8.     Version
  9.     0.1
  10.    

"Re: Re: #2185" (PHP) view

  1. <?
  2. $user="hellohowru_xyz";            //hellohowru_xyz is the username
  3. $password="abcd";            //password
  4. $database="hellohowru_xyz2";        //database name
  5.  
  6. $user=$_POST['username'];        //inputted fields
  7. $pass=$_POST['pass'];
  8.  
  9.  
  10. $link = mysql_connect(localhost,$user,$password);

"Re: #2185" (PHP) view

  1. <?
  2. $user="hellohowru_xyz";            //hellohowru_xyz is the username
  3. $password="abcd";            //password
  4. $database="hellohowru_xyz2";        //database name
  5.  
  6. $user=$_POST['username'];        //inputted fields
  7. $pass=$_POST['pass'];
  8.  
  9.  
  10. $link = mysql_connect(localhost,$user,$password);

"Untitled" (PHP) view

  1. <?php
  2.  
  3. class trivia extends tools
  4. {
  5.    
  6.     public $string;
  7.     public $id;
  8.  
  9.     public function __construct($string, $id)
  10.     {

"Untitled" (PHP) view

  1. <?php
  2.  
  3. public function trivia($id=1)
  4.     {
  5.        
  6.         # Pull Trivia Plugin Details
  7.         $fetch = mysql_fetch_assoc(mysql_query('SELECT * FROM `plugins` WHERE `id` = "'.$id.'" ;'));
  8.            
  9.         # Settings
  10.         if($this->function == '*trivia'):

"Re: #1803" (PHP) view

  1. <?php
  2. /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  Here we decide what page to include ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  3. if($_POST['do'] == "search" or $_GET['dosearch'] == "yes")
  4. {
  5.   $subaction = "search";
  6.   $dosearch = "yes";
  7.   include("./search.php");
  8. }
  9. elseif($_GET['do'] == "archives")
  10. {

"Untitled" (PHP) view

  1. <?php
  2. /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  Here we decide what page to include ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
  3. if($_POST['do'] == "search" or $_GET['dosearch'] == "yes")
  4. {
  5.   $subaction = "search";
  6.   $dosearch = "yes";
  7.   include("./search.php");
  8. }
  9. elseif($_GET['do'] == "archives")
  10. {

"Untitled" (C/C++) view

  1. - (IBAction)toggleView {   
  2.     /*
  3.     This method is called when the info or Done button is pressed.
  4.     It flips the displayed view from the main view to the flipside view and vice-versa.
  5.     */
  6.     if (flipsideViewController == nil) {
  7.         [self loadFlipsideViewController];
  8.     }
  9.    
  10.     UIView *mainView = mainViewController.view;

« Page: 1, 2, 3.. »