Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <iostream>
#include <stdlib.h>
using namespace std;
class MyClass{
public:
void test(){
<?php
$content = file_get_contents('http://www.exhibition-directory.com/expostars/index.php?'.http_build_query($_GET));
//$content = file_get_contents('http://www.exhibition-directory.com/expostars/index.php/');
$content = str_replace('</title>','</title><base href="http://www.exhibition-directory.com/expostars/" />', $content);
$content = str_replace('</head>','<link rel="stylesheet" href="http://www.informatixtech.com/expostars/wp-content/themes/hotstar-child/hotstar-child/custom.css" type="text/stylesheet" /></head>', $content);
$content = str_replace('<form name="searchForm" action="index.php" enctype="multipart/form-data" method="get">','<form name="searchForm" action="http://www.informatixtech.com/expostars/search-page.php" enctype="multipart/form-data" method="get">', $content);
echo $content;
@waqasraza123
waqasraza123 / AppServiceProvider.php
Last active December 29, 2015 22:49
this is the error FatalErrorException in AppServiceProvider.php line 15: Class 'App\Providers\UserInfo' not found
<?php
namespace App\Providers;
include_once __DIR__."/../../../registration/php/user_info.php";
use Illuminate\Support\ServiceProvider;
use Auth;
class AppServiceProvider extends ServiceProvider {
protected $currentUser, $allUsers;
<?php namespace App\Http\Middleware;
use Closure;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Http\RedirectResponse;
class RedirectIfAuthenticated {
/**
* The Guard implementation.
-- phpMyAdmin SQL Dump
-- version 4.0.4.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Dec 23, 2015 at 05:32 PM
-- Server version: 5.5.32
-- PHP Version: 5.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";