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.

swordz's Recent Pastes

"Untitled" (Plain Text) view

  1. $result = $this->Upload->find ('all', array(
  2. 'joins' => array (
  3. array (
  4. 'table' => 'downloads',
  5. 'alias' => 'Download',
  6. 'type'  => 'inner',
  7. 'foreignKey' =>  false,
  8. 'conditions' => array(
  9. 'Download.user_id = User.id'
  10. )

"Untitled" (Plain Text) view

  1. <?php echo $this->Form->create('Day', array('url' => array('controller' => 'loggable', 'action' => 'day'))); ?>
  2. <?php echo $this->Form->input('date', array('type' => 'date', 'maxYear' => date('Y'))); ?>
  3. <?php echo $this->Form->end('Go to Day'); ?>

"Untitled" (Plain Text) view

  1. " do it in this file (/etc/vim/vimrc), since debian.vim will be overwritten
  2. " everytime an upgrade of the vim packages is performed.  It is recommended to
  3. " make changes after sourcing debian.vim since it alters the value of the
  4. " 'compatible' option.
  5.  
  6. " This line should not be removed as it ensures that various options are
  7. " properly set to work with the Vim-related packages available in Debian.
  8. runtime! debian.vim
  9.  
  10. " Uncomment the next line to make Vim more Vi-compatible

"Untitled" (Plain Text) view

  1. function constructClasses() {
  2. $this->__mergeVars();
  3. $this->Component->init($this);
  4.  
  5. if ($this->uses !== null || ($this->uses !== array())) {
  6. if (empty($this->passedArgs) || !isset($this->passedArgs['0'])) {
  7. $id = false;
  8. } else {
  9. $id = $this->passedArgs['0'];
  10. }

"Untitled" (Plain Text) view

  1. desktop:~# apt-get update
  2. Hit http://archive.ubuntu.com karmic Release.gpg
  3. Hit http://gb.archive.ubuntu.com karmic Release.gpg               
  4. Hit http://gb.archive.ubuntu.com karmic/main Translation-en_GB     
  5. Hit http://gb.archive.ubuntu.com karmic/restricted Translation-en_GB         
  6. Hit http://security.ubuntu.com karmic-security Release.gpg                   
  7. Ign http://security.ubuntu.com karmic-security/main Translation-en_GB         
  8. Ign http://security.ubuntu.com karmic-security/restricted Translation-en_GB   
  9. Hit http://archive.ubuntu.com karmic Release                                 
  10. Hit http://gb.archive.ubuntu.com karmic/universe Translation-en_GB           

"Re: #14346" (Plain Text) view

  1. Options +FollowSymLinks
  2. RewriteEngine On
  3. RewriteRule (.*)/$ index.php?page=$1 [R=301]
  4. RewriteRule teachers/(.*)/$ index.php?page=teachers&teacher=$1 [R=301]

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

  1. <?php
  2. /**
  3. * The base configurations of the WordPress.
  4. *
  5. * This file has the following configurations: MySQL settings, Table Prefix,
  6. * Secret Keys, WordPress Language, and ABSPATH. You can find more information by
  7. * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
  8. * wp-config.php} Codex page. You can get the MySQL settings from your web host.
  9. *
  10. * This file is used by the wp-config.php creation script during the

"Re: Re: Re: Re: #14164" (Plain Text) view

  1. <?php
  2. /**
  3. * The base configurations of the WordPress.
  4. *
  5. * This file has the following configurations: MySQL settings, Table Prefix,
  6. * Secret Keys, WordPress Language, and ABSPATH. You can find more information by
  7. * visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
  8. * wp-config.php} Codex page. You can get the MySQL settings from your web host.
  9. *
  10. * This file is used by the wp-config.php creation script during the

"Re: Re: #14019" (Plain Text) view

  1. {USER}, Please check out this video on creating a database: http://screencasts.uuuq.com/creating-a-database/
  2. {USER}, Please check out this video on using FTP: http://screencasts.uuuq.com/how-to-use-ftp/
  3. {USER}, Please check out this video on using PHPMYADMIN: http://screencasts.uuuq.com/using-phpmyadmin/
  4. {USER}, Please check out this video on Adding a custom domain: http://screencasts.uuuq.com/adding-a-custom-domain-name/
  5. {USER}, All hosting related questions are to be directed towards #hosting ; to join the channel please type /join #hosting
  6. {USER}, All php related questions are to be directed towards #php; to join that channel please type /join #php;
  7. {USER}, This is room is for disscussion please join #test to for bot related testing, [Type /join #test]
  8. {USER}, If you do bring bots into any official channels please ensure that none of the triggers overlap with those of the official bots. Bots are also not allowed to create excessive unwanted channel noise, this includes game bots, displaying RSS feeds and the like.
  9. {USER}, The info you provided is not enough for anyone here to help you, Please give us more information and we will try to help you!
  10. {USER}, PHP Safe mode is on to discourage abusers, there is no way to turn it off unless you buy Premium Hosting.

"Re: #14019" (Plain Text) view

  1. fputs($socket, "PRIVMSG $ex[2] :$ex[4], Please check out this video on creating a database: http://screencasts.uuuq.com/creating-a-database/\n");
  2. fputs($socket, "PRIVMSG $ex[2] :$ex[4], Please check out this video on using FTP: http://screencasts.uuuq.com/how-to-use-ftp/\n");
  3. fputs($socket, "PRIVMSG $ex[2] :$ex[4], Please check out this video on using PHPMYADMIN: http://screencasts.uuuq.com/using-phpmyadmin/\n");
  4. fputs($socket, "PRIVMSG $ex[2] :$ex[4], Please check out this video on Adding a custom domain: http://screencasts.uuuq.com/adding-a-custom-domain-name/\n");
  5. fputs($socket, "PRIVMSG $ex[2] :$ex[4], All hosting related questions are to be directed towards #hosting ; to join the channel please type /join #hosting\n");
  6. fputs($socket, "PRIVMSG $ex[2] :$ex[4], All php related questions are to be directed towards #php; to join that channel please type /join #php\n");
  7. fputs($socket, "PRIVMSG $ex[2] :$ex[4], This is room is for disscussion please join #test to for bot related testing, [Type /join #test]\n");
  8. fputs($socket, "PRIVMSG $ex[2] :$ex[4], If you do bring bots into any official channels please ensure that none of the triggers overlap with those of the official bots. Bots are also not allowed to create excessive unwanted channel noise, this includes game bots, displaying RSS feeds and the like.\n");
  9. fputs($socket, "PRIVMSG $ex[2] :$ex[4], The info you provided is not enough for anyone here to help you, Please give us more information and we will try to help you!\n");
  10. fputs($socket, "PRIVMSG $ex[2] :$ex[4], PHP Safe mode is on to discourage abusers, there is no way to turn it off unless you buy Premium Hosting.\n");

Page: 1, 2.. »