Paste The Last Thing You Copied V.1

Play text-based forum games!
User avatar
Tzatziki Cfnmpah IV
Party bird
Party bird
Posts: 781
Joined: Wed Jan 23, 2019 9:43 am
Tagline: i got the horses in the bacc
Mood: bored

Paste The Last Thing You Copied V.1

Unread post by Tzatziki Cfnmpah IV » Thu May 23, 2019 3:56 pm

Just paste the last thing you copied! All shibaface rules apply,of course c:

I'll start:
Image
Pet's name: Malcolm
Owner's name: Tzatziki Cfnmpah IV
tzatzikitheleg on chickensmoothie! have a great day!
Image

User avatar
Misty
Well-known
Well-known
Posts: 3327
Joined: Mon Jan 21, 2019 2:26 pm
Tagline: Some people need a high five. In the face. With a chair.
Mood: choo choo go

Re: Paste The Last Thing You Copied V.1

Unread post by Misty » Thu May 23, 2019 7:29 pm

how long do gray parrots live
Image
Christian
She/her
I can do all things through Him who gives me strength
Philippians 4:13
.Kira Nightblade. on CS, Nightblade on DV, Sarahkey8 on some others
If you have any questions about Christianity, feel free to PM me!
I will try to help you in any way I can ^.^

User avatar
snorton
Well-known
Well-known
Posts: 6472
Joined: Thu Apr 11, 2019 8:51 pm
Tagline: tag, you're it
Mood: failing kites

Re: Paste The Last Thing You Copied V.1

Unread post by snorton » Fri May 24, 2019 2:56 am



Imagex

ᶜᵉᵒ ᵒᶠ ᵐⁱⁿᵉᶜʳᵃᶠᵗ ᵈⁱᵃᵐᵒⁿᵈˢ

User avatar
Tzatziki Cfnmpah IV
Party bird
Party bird
Posts: 781
Joined: Wed Jan 23, 2019 9:43 am
Tagline: i got the horses in the bacc
Mood: bored

Re: Paste The Last Thing You Copied V.1

Unread post by Tzatziki Cfnmpah IV » Fri May 24, 2019 7:36 am

whatever, you aren't worth my time, you can't even read. your probably like 12. I tried to be nice but you were nothing but rude and ignorant. have a nice life. or don't. I don't really care either way.
tzatzikitheleg on chickensmoothie! have a great day!
Image

User avatar
Misty
Well-known
Well-known
Posts: 3327
Joined: Mon Jan 21, 2019 2:26 pm
Tagline: Some people need a high five. In the face. With a chair.
Mood: choo choo go

Re: Paste The Last Thing You Copied V.1

Unread post by Misty » Fri May 24, 2019 9:39 am

District
Image
Christian
She/her
I can do all things through Him who gives me strength
Philippians 4:13
.Kira Nightblade. on CS, Nightblade on DV, Sarahkey8 on some others
If you have any questions about Christianity, feel free to PM me!
I will try to help you in any way I can ^.^

User avatar
Doggos_on_Mars
Site Admin
Site Admin
Posts: 4509
Joined: Sat Dec 08, 2018 10:35 pm
Tagline: Can I befriend a paperclip during quarantine?
Mood: I'm allergic to air

Re: Paste The Last Thing You Copied V.1

Unread post by Doggos_on_Mars » Sat Jul 27, 2019 12:20 am

xxxxxxxxxxxxxxxx
Doggos | she/her
xxxxxxxxxxxxxxxx

Image

User avatar
gabrielle
Well-known
Well-known
Posts: 3340
Joined: Fri Dec 28, 2018 1:53 am
Tagline: i want to go outside
Mood: dreaming

Re: Paste The Last Thing You Copied V.1

Unread post by gabrielle » Sat Jul 27, 2019 12:54 am

voy a decir que no
Image
elle • she/her • esfp
when this world is no more,
the moon is all we’ll see.
i’ll ask you to fly away with me
until the stars all fall down.

User avatar
BayoDino
Spreading the wings
Spreading the wings
Posts: 156
Joined: Fri May 03, 2019 5:44 am
Tagline: ✧・゚:* StarLight *:・゚✧
Mood: tired!
Contact:

Re: Paste The Last Thing You Copied V.1

Unread post by BayoDino » Sat Jul 27, 2019 7:28 am

Code: Select all

<html>
<head>
</head>

<body>
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

$user->session_begin();
if ($user->data['user_id'] == ANONYMOUS)
{
    login_box('', $user->lang['LOGIN']);
} 

require("adopttools.php");

/* Our visitor has picked an adoptable they want, its id is in $_REQUEST['id']. Find that
 * adoptable in adoptables.xml
 */
$adoptable=find_adoptable($_REQUEST['id']);

/* To randomly pick a variation from that adoptable, we're going have to do a little maths with
 * random numbers.
 *
 * First we find the sum of all the 'chance' attributes for this adoptable...
 */

$sum=0;
foreach ($adoptable->variation as $variation) {
	$sum=$sum + $variation['chance'];
}

/* Now we can generate a random number which goes from 0.0 to that sum. This will help us
 * pick a variation.
 */
$random=lcg_value()*$sum;

$sum=0;
foreach ($adoptable->variation as $variation) {
	$sum = $sum + $variation['chance'];
	
	if ($random <= $sum) {
		//Choose this variation
		$v_id=$variation['id'];
		break;
	}
}
include "config.php";
// Create connection
try {
    $conn = new PDO("mysql:host=$dbhost;dbname=$dbname", $dbuser, $dbpasswd);
    // set the PDO error mode to exception
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

    // prepare sql and bind parameters
    $stmt = $conn->prepare("INSERT INTO phpbb_exam (pet_type, pet_variation, pet_name, pet_owner) VALUES (:type, :variation, :name, :owner)");
    $stmt->bindParam(':type', $type);
    $stmt->bindParam(':variation', $v_id);
    $stmt->bindParam(':name', $name);
    $stmt->bindParam(':owner', $owner);

    // insert a row
    // set parameters and execute
     $type = $_POST["id"];
     $name = $_POST["petname"];
     $owner = $user->data['user_id'];
    $stmt->execute();

    echo "Pet Adopted successfully";
    }
catch(PDOException $e)
    {
    echo "Error: " . $e->getMessage();
    }
$conn = null;


?>
coding for SF!
Image
Image
Lorem
Ispum
Image
Lorem
Ispum
Image
Image

User avatar
Doggos_on_Mars
Site Admin
Site Admin
Posts: 4509
Joined: Sat Dec 08, 2018 10:35 pm
Tagline: Can I befriend a paperclip during quarantine?
Mood: I'm allergic to air

Re: Paste The Last Thing You Copied V.1

Unread post by Doggos_on_Mars » Sat Jul 27, 2019 12:16 pm

xxxxxxxxxxxxxxxx
Doggos | she/her
xxxxxxxxxxxxxxxx

Image

User avatar
BayoDino
Spreading the wings
Spreading the wings
Posts: 156
Joined: Fri May 03, 2019 5:44 am
Tagline: ✧・゚:* StarLight *:・゚✧
Mood: tired!
Contact:

Re: Paste The Last Thing You Copied V.1

Unread post by BayoDino » Sat Jul 27, 2019 1:15 pm

`define('WP_DEBUG', false);`
Image
Image
Lorem
Ispum
Image
Lorem
Ispum
Image
Image

Post Reply