Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am davidkevork on github.
  • I am davidkevork (https://keybase.io/davidkevork) on keybase.
  • I have a public key ASCTrn0013GelfTk_kdlzNVbZlUz01wdErlVIGvtv3RCCAo

To claim this, I am signing this object:

<?php
/**
* lebgeeks.com register quiz solver
*
* @author David Kevork
*/
class LebGeeks
{
/**
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Timers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.IO;
namespace ConsoleApplication1
{
class Program
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
Options +FollowSymLinks
RewriteEngine On
# Handle Front Controller...
RewriteCond %{REQUEST_URI} !^.*\.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
<?php
/**
* it will detect whether the request is in Ajax or no
*/
function IsAjax()
{
if (isset($_SERVER['HTTP_X_REQUESTED_WITH'])) {
// checking $_SERVER['HTTP_X_REQUESTED_WITH'] is exist so no error outputs if it is not set
if (strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) === 'xmlhttprequest') {
<?php
include './congif.php';
/**
* config class should have __construct() and __destruct() mysqli connect and close functions
*/
class pagination extends config
{
public $PerPage = '10';
public $PerPagination = '10';
public $FistPage = 1;