repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/tests/Decoda/Loader/FileLoaderTest.php | tests/Decoda/Loader/FileLoaderTest.php | <?php
/**
* @copyright 2006-2014, Miles Johnson - http://milesj.me
* @license https://github.com/milesj/decoda/blob/master/license.md
* @link http://milesj.me/code/php/decoda
*/
namespace Decoda\Loader;
use Decoda\Decoda;
use Decoda\Loader\FileLoader;
use Decoda\Test\TestCase;
use \Exception;
class ... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/tests/Decoda/Engine/PhpEngineTest.php | tests/Decoda/Engine/PhpEngineTest.php | <?php
/**
* @copyright 2006-2014, Miles Johnson - http://milesj.me
* @license https://github.com/milesj/decoda/blob/master/license.md
* @link http://milesj.me/code/php/decoda
*/
namespace Decoda\Engine;
use Decoda\Decoda;
use Decoda\Engine\PhpEngine;
use Decoda\Test\TestCase;
use Decoda\Test\TestFilt... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/tests/templates/test.php | tests/templates/test.php | <?php echo $var; ?> | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/tests/config/test.php | tests/config/test.php | <?php
return ['foo' => 'bar']; | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/nesting.php | examples/nesting.php | <h2>Unclosed tags</h2>
<?php $string = '[b]Bold
[i]Italics[/i]
[u]Underline[/b]
Strike through[/s]';
$code = new \Decoda\Decoda($string);
$code->addFilter(new \Decoda\Filter\DefaultFilter());
echo $code->parse(); ?>
<h2>Incorrectly nested</h2>
<?php $string = '[b]Bold[/b]
[b][i]Bold, italics[/i][/b]
[i][u]Bold, ita... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/emoticon.php | examples/emoticon.php | <h2>Emoticons</h2>
<?php $string = 'Decoda also comes with an emoticon system. It will convert any kind of smiley from emoticons.json into a small image.
The system will not parse smilies within strings (like URLs) that resemble smilies. Here are a couple:
:] :) :D :/ >[ :p :o >_>
It also supports the word syntax:
... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/engine.php | examples/engine.php | <?php
class TestEngine extends \Decoda\Engine\AbstractEngine {
public function render(array $tag, $content) {
$setup = $this->getFilter()->getTag($tag['tag']);
$paths = $this->getPaths();
$path = $paths[0] . $setup['template'] . '.tpl';
if (!file_exists($path)) {
throw... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/code.php | examples/code.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\CodeFilter());
$code->addHook(new \Decoda\Hook\EmoticonHook());
$code->addHook(new\Decoda\Hook\CensorHook()); ?>
<h2>Code</h2>
<?php $string = "[code]// Constants
define('DECODA', __DIR__ . '/');
// Includes
spl_autoload_register();
set_include_... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/image.php | examples/image.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\ImageFilter()); ?>
<h2>Image</h2>
<?php $string = '[img]http://www.google.com/intl/en_ALL/images/srpr/logo1w.png[/img]';
$code->reset($string);
echo $code->parse(); ?>
<h2>Image <span>with width or height</span></h2>
<?php $string = '[img widt... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/default.php | examples/default.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\DefaultFilter()); ?>
<h2>Bold, italics, underline, strike-through</h2>
<?php $string = '[b]Bold[/b]
[i]Italics[/i]
[u]Underline[/u]
[s]Strike through[/s]
[b][i][u]Bold, italics, underline[/u][/i][/b]';
$code->reset($string);
echo $code->parse();... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/list.php | examples/list.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\ListFilter()); ?>
<h2>List</h2>
<?php $string = '[list]
[li]Lorem ipsum dolor sit amet, consectetuer adipiscing elit.[/li]
[li]Aliquam laoreet pulvinar sem. Aenean at odio.[/li]
[li]Vestibulum ante ipsum primis in faucibus orci luctus et ultrices... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/video.php | examples/video.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\VideoFilter()); ?>
<h2>Video</h2>
<?php $string = '[video="youtube"]piZrjDTx2eg[/video]
[vimeo]27315673[/vimeo]
[liveleak]d4a_1313688628[/liveleak]
[veoh]v21205329j6GXPXhT[/veoh]
[dailymotion]xklaf6_gamescom-2011_videogames[/dailymotion]
[myspace... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/text.php | examples/text.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\TextFilter()); ?>
<h2>Font Family</h2>
<?php $string = '[font="Arial"]Lorem ipsum dolor sit amet, consectetur adipiscing elit.[/font]
[font="Verdana"]Volutpat tellus vulputate dui venenatis quis euismod turpis pellentesque.[/font]
[font="Tahoma"]... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/email.php | examples/email.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\EmailFilter());
$code->addHook(new \Decoda\Hook\ClickableHook()); ?>
<h2>Email</h2>
<?php $string = 'Valid emails:
email@domain.com (auto-linked with hook)
[email]email@domain.com[/email]
[email="email@domain.com"]Send me an email![/email]
Inval... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/features.php | examples/features.php | <h2>Localization</h2>
<?php
$code = new \Decoda\Decoda('[b]Features[/b]');
$code->addFilter(new \Decoda\Filter\QuoteFilter());
$code->setLocale('de-de');
echo 'German: '. $code->message('quoteBy') .'<br>';
$code->setLocale('fr-fr');
echo 'French: '. $code->message('quoteBy') .'<br>';
$code->setLocale('ko-kr');
echo... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/quote.php | examples/quote.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\QuoteFilter()); ?>
<h2>Quote</h2>
<?php $string = '[quote]Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque non sapien a eros tincidunt accumsan. Ut nisl dui, dignissim at posuere quis, facilisis eget lectus. Morbi vitae massa... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/index.php | examples/index.php | <?php
/**
* @copyright Copyright 2006-2013, Miles Johnson - http://milesj.me
* @license http://opensource.org/licenses/mit-license.php - Licensed under the MIT License
* @link http://milesj.me/code/php/decoda
*/
require_once '../tests/bootstrap.php';
// Build menus
$view = strtolower(isset($_GET[... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/clickable.php | examples/clickable.php | <h2>Clickable</h2>
<?php $string = 'Valid:
email@domain.com
http://domain.com
Invalid:
email@domain
www.domain.com';
$code = new \Decoda\Decoda($string);
$code->addFilter(new \Decoda\Filter\EmailFilter());
$code->addFilter(new \Decoda\Filter\UrlFilter());
$code->addHook(new \Decoda\Hook\ClickableHook());
echo $code-... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/censor.php | examples/censor.php | <h2>Censoring</h2>
<?php $string = 'slut fuck bitch
Decoda uses a pretty awesome censoring system. It censors any word in the censored.txt blacklist file.
It tries its best not to censor words within other words, but it can happen. Here are a few examples:
fuck shit bitch asshole penis douche
And here are the same ... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/block.php | examples/block.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\BlockFilter()); ?>
<h2>Align</h2>
<?php $string = '[align="center"]Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam laoreet pulvinar sem. Aenean at odio.[/align]
[align="justify"]Vestibulum ante ipsum primis in faucibus orci luct... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/security.php | examples/security.php | <?php
$code = new \Decoda\Decoda();
$code->defaults(); ?>
<h2>XSS Protection</h2>
<p>Any form of XSS injection will be escaped or removed from the final output; this includes any attribute beginning with javascript:.</p><br>
<?php $string = '<script>alert("I can use XSS");</script>
[b]<script>alert(document.cookie);... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/examples/url.php | examples/url.php | <?php
$code = new \Decoda\Decoda();
$code->addFilter(new \Decoda\Filter\UrlFilter());
$code->addHook(new \Decoda\Hook\ClickableHook()); ?>
<h2>URL</h2>
<?php $string = 'Valid websites:
[url]http://domain.com[/url]
[url]https://securesite.com[/url]
[url]ftp://ftpsite.com[/url]
[url]irc://ircsite.com[/url]
[url]telnet:... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/templates/code.php | templates/code.php | <?php // Place $content directly within the tags to not leave any whitespace for <pre> ?>
<pre class="decoda-code<?php if (!empty($lang)) { echo ' ' . $classPrefix . $lang; } ?>"<?php if (!empty($hl)) { printf(' %s="%s"', $highlightAttribute, $hl); } ?>><code><?php echo $content; ?></code></pre> | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/templates/video.php | templates/video.php | <?php if ($player === 'embed') { ?>
<embed src="<?php echo $url; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" type="application/x-shockwave-flash"></embed>
<?php } else { ?>
<iframe src="<?php echo $url; ?>" width="<?php echo $width; ?>" height="<?php echo $height; ?>" frameborder="0"></ifr... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/templates/spoiler.php | templates/spoiler.php | <?php
$counter = rand();
$filter = $this->getFilter();
$show = $filter->message('spoiler') . ' (' . $filter->message('show') . ')';
$hide = $filter->message('spoiler') . ' (' . $filter->message('hide') . ')'; ?>
<script type="text/javascript">
if (typeof decodaToggleSpoiler !== 'function') {
function decodaToggl... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/templates/quote.php | templates/quote.php | <blockquote class="decoda-quote">
<?php if (!empty($author) || !empty($date)) { ?>
<div class="decoda-quote-head">
<?php if (!empty($date)) { ?>
<span class="decoda-quote-date">
<?php echo date($dateFormat, is_numeric($date) ? $date : strtotime($date)); ?>
... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/config/censored.php | config/censored.php | <?php
/**
* @copyright 2006-2014, Miles Johnson - http://milesj.me
* @license https://github.com/milesj/decoda/blob/master/license.md
* @link http://milesj.me/code/php/decoda
*/
return [
'asshole',
'bitch',
'btch',
'blowjob',
'cock',
'cawk',
'clt',
'clit',
'clitoris... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/config/messages.php | config/messages.php | <?php
/**
* @copyright 2006-2014, Miles Johnson - http://milesj.me
* @license https://github.com/milesj/decoda/blob/master/license.md
* @link http://milesj.me/code/php/decoda
*/
return [
'en-us' => [
'spoiler' => 'Spoiler',
'hide' => 'Hide',
'show' => 'Show',
'link'... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
milesj/decoda | https://github.com/milesj/decoda/blob/4e4151f2f33f634cd560b95a010fe42d04cecefc/config/emoticons.php | config/emoticons.php | <?php
/**
* @copyright 2006-2014, Miles Johnson - http://milesj.me
* @license https://github.com/milesj/decoda/blob/master/license.md
* @link http://milesj.me/code/php/decoda
*/
/**
* Mapping of emoticons to a list of smilies that represents it.
* The smiley will be replaced with an image that uses ... | php | MIT | 4e4151f2f33f634cd560b95a010fe42d04cecefc | 2026-01-05T02:38:39.007819Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/logout.php | src/logout.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
logout.php
- end a session
MIT license
2008 Calvin Lough <http://calv.in>
*/
if (!session_id())
session_start();
if (isset($_SESSION['SB_LOGIN'])) {
$_SESSION['SB_LOGIN'] = null;
unset($GLOBALS['_SESSION']['SB_LOGIN']);
}
if (isset(... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/home.php | src/home.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
home.php
- create a new database, links, etc
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
?>
<table class="hometable">
<tr>
<td>
<h4><?php echo __("Welcome to SQL Buddy!"); ?></h4>
</td>
<... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/insert.php | src/insert.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
insert.php
- insert into a database table
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
requireDatabaseAndTableBeDefined();
if (isset($db))
$conn->selectDB($db);
if (isset($table))
$struct... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/export.php | src/export.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
export.php
- export data in sql and csv formats
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
if ($_POST) {
$outputBuffer = "";
if (isset($db)) {
$dbs[] = $db;
if (isset($table))
... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/ajaxquery.php | src/ajaxquery.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
ajaxquery.php
- used for a variety of ajax functionality - runs a background query
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
if (isset($db))
$conn->selectDB($db);
if (isset($_POST['query... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/ajaxfulltext.php | src/ajaxfulltext.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
ajaxfulltext.php
- fetches full text for browse tab
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
if (isset($db))
$conn->selectDB($db);
if (isset($_POST['query'])) {
$queryList = splitQue... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/query.php | src/query.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
query.php
- query the database
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
if (isset($db))
$conn->selectDB($db);
if (isset($_POST['query']))
$query = $_POST['query'];
echo '<div style="p... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/users.php | src/users.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
users.php
- manage users page
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
function removeAdminPrivs($priv) {
if ($priv == "FILE" || $priv == "PROCESS" || $priv == "RELOAD" || $priv == "SH... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/ajaxcreatetable.php | src/ajaxcreatetable.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
ajaxcreatetable.php
- called from dboverview.php to create a new table
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
if (isset($db))
$conn->selectDB($db);
if (isset($_POST['query'])) {
$q... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/browse.php | src/browse.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
browse.php
- browse table - just grabs variables and passes them to include_browse.php
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
requireDatabaseAndTableBeDefined();
if (isset($db))
$conn... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/ajaximportfile.php | src/ajaximportfile.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
ajaximportfile.php
- import from file - called from import.php
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
if (isset($db))
$conn->selectDB($db);
function stripCommentLines($in) {
if (subs... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/structure.php | src/structure.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
structure.php
- view/edit the structure of a table
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
requireDatabaseAndTableBeDefined();
if (isset($db))
$conn->selectDB($db);
if (isset($_POST))... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/serve.php | src/serve.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
serve.php
- serves files in a compressed manner
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "config.php";
function compressCSS($input) {
// remove comments
$input = preg_replace("/\/\*.*\*\//Us", "", $input);
// remov... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/functions.php | src/functions.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
functions.php
- gets the page setup with the variables it needs
MIT license
2008 Calvin Lough <http://calv.in>
*/
error_reporting(E_ALL);
if (function_exists('date_default_timezone_set'))
date_default_timezone_set('Greenwich');
if (!s... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/editcolumn.php | src/editcolumn.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
editcolumn.php
- edit database table columns
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
requireDatabaseAndTableBeDefined();
if (isset($db))
$conn->selectDB($db);
if (isset($db))
$struct... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/config.php | src/config.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
config.php
- options for customizing sql buddy
MIT license
2008 Calvin Lough <http://calv.in>
*/
/* The values below are for the login.php page */
$sbconfig['DefaultAdapter'] = "mysql";
$sbconfig['DefaultHost'] = "localhost";
$sbconfig... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/login.php | src/login.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
login.php
- login to sql buddy
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
$adapter = (isset($sbconfig['DefaultAdapter'])) ? $sbconfig['DefaultAdapter'] : "mysql";
$host = (isset($sbconfig['DefaultHost']))... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/edit.php | src/edit.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
edit.php
- edit specific rows from a database table
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
requireDatabaseAndTableBeDefined();
if (isset($db))
$conn->selectDB($db);
if (isset($table)... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/index.php | src/index.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
index.php
- output page structure, content loaded through ajax
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck(false);
outputPage();
?> | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/ajaxsaveedit.php | src/ajaxsaveedit.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
ajaxsaveedit.php
- saves data to the database
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
if (isset($db))
$conn->selectDB($db);
if ($_POST && isset($table)) {
$insertChoice = "";
if ... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/edituser.php | src/edituser.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
edituser.php
- change permissions, password
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
$conn->selectDB("mysql");
if (isset($_POST['editParts'])) {
$editParts = $_POST['editParts'];
$ed... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/dboverview.php | src/dboverview.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
dboverview.php
- database main page - list tables and create new table
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
if (isset($db)) {
$conn->selectDB($db);
//run delete queries
if (isset($... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/ajaxsavecolumnedit.php | src/ajaxsavecolumnedit.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
ajaxsavecolumnedit.php
- saves the details of a table column
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
if (isset($db))
$conn->selectDB($db);
if (isset($_POST['runQuery'])) {
$query = $_... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/import.php | src/import.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
import.php
- import from file
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
?>
<div class="import">
<div id="importMessage" style="display: none; margin-bottom: 11px"></div>
<h4><?php e... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/ajaxsaveuseredit.php | src/ajaxsaveuseredit.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
ajaxsavecolumnedit.php
- saves the details of a table column
MIT license
2008 Calvin Lough <http://calv.in>
*/
include "functions.php";
loginCheck();
$conn->selectDB("mysql");
function removeAdminPrivs($priv) {
if ($priv == "FILE" ||... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/includes/browse.php | src/includes/browse.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
include_browse.php
- not called directly, but from browse.php and query.php
MIT license
2008 Calvin Lough <http://calv.in>
*/
$totalRows = 0;
$insertCount = 0;
$queryTime = 0;
$perPage = (isset($sbconfig) && array_key_exists("RowsPerPag... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/includes/types.php | src/includes/types.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
types.php
- list of data types
MIT-style license
Copyright (c) 2008 Calvin Lough, <http://calv.in>
*/
$typeList[] = "varchar";
$typeList[] = "char";
$typeList[] = "text";
$typeList[] = "tinytext";
$typeList[] = "mediumtext";
$typeList[] ... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/includes/class/Sql-php4.php | src/includes/class/Sql-php4.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
sql-php4.php
- sql class (php4 compatible)
MIT license
2008 Calvin Lough <http://calv.in>
*/
class SQL {
var $adapter = "";
var $method = "";
var $version = "";
var $conn = "";
var $options = "";
var $errorMessage = "";
var $db ... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/includes/class/GetTextReader.php | src/includes/class/GetTextReader.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
gettextreader.php
- translation file reader
MIT license
2008 Calvin Lough <http://calv.in>
*/
class GetTextReader {
var $translationIndex = array();
var $basePath = "locale/";
function __construct($inputFile) {
$msgId = "";
... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
deliciousbrains/sqlbuddy | https://github.com/deliciousbrains/sqlbuddy/blob/8d684096dd5382bf4d85246430dde8afbfc539f3/src/includes/class/Sql.php | src/includes/class/Sql.php | <?php
/*
SQL Buddy - Web based MySQL administration
http://www.sqlbuddy.com/
sql.php
- sql class
MIT license
2008 Calvin Lough <http://calv.in>
*/
# There is no good corresponding mysql_result function in mysqli. mysql_result is approximated here.
function mysqli_result($res, $row, $field=0) {
$res->data_seek($r... | php | MIT | 8d684096dd5382bf4d85246430dde8afbfc539f3 | 2026-01-05T02:38:50.867427Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Connection.php | src/Kitar/Dynamodb/Connection.php | <?php
namespace Kitar\Dynamodb;
use Aws\Sdk as AwsSdk;
use Aws\DynamoDb\DynamoDbClient;
use Illuminate\Database\Connection as BaseConnection;
use Illuminate\Support\Arr;
class Connection extends BaseConnection
{
/**
* The DynamoDB client.
* @var \Aws\Dynamodb\DynamoDbClient
*/
protected $clien... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/DynamodbServiceProvider.php | src/Kitar/Dynamodb/DynamodbServiceProvider.php | <?php
namespace Kitar\Dynamodb;
use Illuminate\Support\ServiceProvider;
class DynamodbServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*/
public function boot()
{
//
}
/**
* Register the service provider.
*/
public function registe... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Model/AuthUserProvider.php | src/Kitar/Dynamodb/Model/AuthUserProvider.php | <?php
namespace Kitar\Dynamodb\Model;
use Illuminate\Contracts\Auth\Authenticatable;
use Illuminate\Contracts\Auth\UserProvider as BaseUserProvider;
use Illuminate\Contracts\Hashing\Hasher as HasherContract;
class AuthUserProvider implements BaseUserProvider
{
/**
* The hasher implementation.
*
* ... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Model/KeyMissingException.php | src/Kitar/Dynamodb/Model/KeyMissingException.php | <?php
namespace Kitar\Dynamodb\Model;
use RuntimeException;
class KeyMissingException extends RuntimeException
{
}
| php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Model/Model.php | src/Kitar/Dynamodb/Model/Model.php | <?php
namespace Kitar\Dynamodb\Model;
use Illuminate\Database\Eloquent\Model as BaseModel;
use Kitar\Dynamodb\Model\KeyMissingException;
class Model extends BaseModel
{
/**
* The table associated with the model.
*
* @var string
*/
protected $table;
/**
* The Partition Key.
... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Helpers/Collection.php | src/Kitar/Dynamodb/Helpers/Collection.php | <?php
namespace Kitar\Dynamodb\Helpers;
use Illuminate\Support\Collection as BaseCollection;
class Collection extends BaseCollection
{
/**
* @var array
*/
private $meta;
/**
* @param array $meta
* @return $this
*/
public function setMeta($meta)
{
$this->meta = ... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Helpers/NumberIterator.php | src/Kitar/Dynamodb/Helpers/NumberIterator.php | <?php
namespace Kitar\Dynamodb\Helpers;
class NumberIterator implements \Iterator
{
private $start = 0;
private $current = 0;
private $prefix = '';
public function __construct($start = 1, $prefix = '')
{
$this->start = $this->current = $start;
$this->prefix = $prefix;
}
p... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Query/Builder.php | src/Kitar/Dynamodb/Query/Builder.php | <?php
namespace Kitar\Dynamodb\Query;
use Closure;
use BadMethodCallException;
use Kitar\Dynamodb\Connection;
use Kitar\Dynamodb\Query\Grammar;
use Kitar\Dynamodb\Query\Processor;
use Kitar\Dynamodb\Query\ExpressionAttributes;
use Illuminate\Support\Str;
use Illuminate\Database\Query\Expression;
use Illuminate\Databa... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Query/Grammar.php | src/Kitar/Dynamodb/Query/Grammar.php | <?php
namespace Kitar\Dynamodb\Query;
use Aws\DynamoDb\Marshaler;
use Illuminate\Support\Str;
use Kitar\Dynamodb\Query\Builder;
use Illuminate\Database\Query\Grammars\Grammar as BaseGrammer;
class Grammar extends BaseGrammer
{
/**
* The marshaler.
* @var Aws\DynamoDb\Marshaler
*/
protected $ma... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Query/ExpressionAttributes.php | src/Kitar/Dynamodb/Query/ExpressionAttributes.php | <?php
namespace Kitar\Dynamodb\Query;
use Aws\DynamoDb\Marshaler;
use Kitar\Dynamodb\Helpers\NumberIterator;
class ExpressionAttributes
{
protected $marshaler;
protected $names = [];
protected $values = [];
protected $name_keys_iterator;
protected $value_keys_iterator;
public function __cons... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/src/Kitar/Dynamodb/Query/Processor.php | src/Kitar/Dynamodb/Query/Processor.php | <?php
namespace Kitar\Dynamodb\Query;
use Aws\DynamoDb\Marshaler;
use Aws\Result;
use Illuminate\Database\Query\Processors\Processor as BaseProcessor;
use Kitar\Dynamodb\Helpers\Collection;
class Processor extends BaseProcessor
{
public $marshaler;
public function __construct()
{
$this->marshale... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/ConnectionTest.php | tests/ConnectionTest.php | <?php
namespace Kitar\Dynamodb\Tests;
use Mockery as m;
use Kitar\Dynamodb\Connection;
use Kitar\Dynamodb\Query\Builder;
use Aws\DynamoDb\DynamoDbClient;
use PHPUnit\Framework\TestCase;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
class ConnectionTest extends TestCase
{
use MockeryPHPUnitIntegration;
... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Model/UserA.php | tests/Model/UserA.php | <?php
namespace Kitar\Dynamodb\Tests\Model;
use Kitar\Dynamodb\Model\Model;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
class UserA extends Model implements AuthenticatableContract
{
use Authenticatable;
protected $table = 'User';
protec... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Model/UserB.php | tests/Model/UserB.php | <?php
namespace Kitar\Dynamodb\Tests\Model;
use Kitar\Dynamodb\Model\Model;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
class UserB extends Model implements AuthenticatableContract
{
use Authenticatable;
protected $table = 'User';
protec... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Model/AuthUserProviderTest.php | tests/Model/AuthUserProviderTest.php | <?php
namespace Kitar\Dynamodb\Tests\Model;
use Aws\Result;
use PHPUnit\Framework\TestCase;
use Mockery as m;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use Illuminate\Database\ConnectionResolver;
use Illuminate\Hashing\BcryptHasher;
use Kitar\Dynamodb\Model\KeyMissingException;
use Kitar\Dynamodb\Model\A... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Model/UserC.php | tests/Model/UserC.php | <?php
namespace Kitar\Dynamodb\Tests\Model;
use Kitar\Dynamodb\Model\Model;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
class UserC extends Model implements AuthenticatableContract
{
use Authenticatable;
protected $table = 'User';
protec... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Model/UserD.php | tests/Model/UserD.php | <?php
namespace Kitar\Dynamodb\Tests\Model;
use Kitar\Dynamodb\Model\Model;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
class UserD extends Model implements AuthenticatableContract
{
use Authenticatable;
protected $table = 'User';
protec... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Model/ModelTest.php | tests/Model/ModelTest.php | <?php
namespace Kitar\Dynamodb\Tests\Model;
use Aws\Result;
use PHPUnit\Framework\TestCase;
use Mockery as m;
use Mockery\Adapter\Phpunit\MockeryPHPUnitIntegration;
use Illuminate\Database\ConnectionResolver;
use Kitar\Dynamodb\Model\KeyMissingException;
use BadMethodCallException;
use Kitar\Dynamodb\Helpers\Collecti... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Model/UserX.php | tests/Model/UserX.php | <?php
namespace Kitar\Dynamodb\Tests\Model;
use Kitar\Dynamodb\Model\Model;
use Illuminate\Auth\Authenticatable;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
class UserX extends Model implements AuthenticatableContract
{
use Authenticatable;
protected $table = 'User';
}
| php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Helpers/CollectionTest.php | tests/Helpers/CollectionTest.php | <?php
namespace Kitar\Dynamodb\Tests\Helpers;
use Kitar\Dynamodb\Helpers\Collection;
use PHPUnit\Framework\TestCase;
class CollectionTest extends TestCase
{
/** @test */
public function it_can_set_and_get_meta()
{
$items = new Collection([]);
$this->assertNull($items->getMeta());
... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Helpers/NumberIteratorTest.php | tests/Helpers/NumberIteratorTest.php | <?php
namespace Kitar\Dynamodb\Tests\Helpers;
use Kitar\Dynamodb\Helpers\NumberIterator;
use PHPUnit\Framework\TestCase;
class NumberIteratorTest extends TestCase
{
/** @test */
public function it_can_use_prefix()
{
$iterator = new NumberIterator(1, '#');
$this->assertEquals('#1', $itera... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Query/ProcessorTest.php | tests/Query/ProcessorTest.php | <?php
namespace Kitar\Dynamodb\Tests\Query;
use Aws\Result;
use Kitar\Dynamodb\Model\Model;
use Kitar\Dynamodb\Query\Processor;
use PHPUnit\Framework\TestCase;
class User extends Model
{
}
class ProcessorTest extends TestCase
{
protected $processor;
protected $mocks = [
'single_item_result' => '{"I... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | false |
kitar/laravel-dynamodb | https://github.com/kitar/laravel-dynamodb/blob/e8386b950703369b8f2033089e62c8a4f4f42040/tests/Query/BuilderTest.php | tests/Query/BuilderTest.php | <?php
namespace Kitar\Dynamodb\Tests\Query;
use Aws\Result;
use BadMethodCallException;
use Mockery as m;
use Kitar\Dynamodb\Connection;
use Kitar\Dynamodb\Model\Model;
use Kitar\Dynamodb\Query\Builder;
use Kitar\Dynamodb\Query\Grammar;
use Kitar\Dynamodb\Query\Processor;
use PHPUnit\Framework\TestCase;
use Mockery\A... | php | MIT | e8386b950703369b8f2033089e62c8a4f4f42040 | 2026-01-05T02:39:17.949962Z | true |
jesusgavancho/TryHackMe_and_HackTheBox | https://github.com/jesusgavancho/TryHackMe_and_HackTheBox/blob/205fc7484d13c456bc20cb67b4d15ebee25946eb/process.php | process.php | <?php
//SSRF Vulnerability
$ip = $_POST['ip'];
$content = file_get_contents($ip);
//RCE Vulnerability
$org = $_POST['organization'];
$org_output=system($org);
//Response Output
echo $org_output, $content;
?> | php | MIT | 205fc7484d13c456bc20cb67b4d15ebee25946eb | 2026-01-05T02:39:33.878869Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/ComposerScripts.php | system/ComposerScripts.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Entity.php | system/Entity.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Common.php | system/Common.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Controller.php | system/Controller.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/CodeIgniter.php | system/CodeIgniter.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge, ... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/bootstrap.php | system/bootstrap.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Model.php | system/Model.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | true |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Files/File.php | system/Files/File.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Files/Exceptions/FileException.php | system/Files/Exceptions/FileException.php | <?php namespace CodeIgniter\Files\Exceptions;
use CodeIgniter\Exceptions\ExceptionInterface;
class FileException extends \RuntimeException implements ExceptionInterface
{
public static function forUnableToMove(string $from = null, string $to = null, string $error = null)
{
return new static(lang('Files.cannotMov... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Files/Exceptions/FileNotFoundException.php | system/Files/Exceptions/FileNotFoundException.php | <?php namespace CodeIgniter\Files\Exceptions;
use CodeIgniter\Exceptions\ExceptionInterface;
class FileNotFoundException extends \RuntimeException implements ExceptionInterface
{
public static function forFileNotFound(string $path)
{
return new static(lang('Files.fileNotFound', [$path]));
}
}
| php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Email/Email.php | system/Email/Email.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2019, British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charg... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | true |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Debug/Exceptions.php | system/Debug/Exceptions.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge, ... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Debug/Timer.php | system/Debug/Timer.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Debug/Toolbar.php | system/Debug/Toolbar.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge, ... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Debug/Iterator.php | system/Debug/Iterator.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge, ... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Debug/Toolbar/Collectors/Database.php | system/Debug/Toolbar/Collectors/Database.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
ParitoshVaidya/CodeIgniter-JWT-Sample | https://github.com/ParitoshVaidya/CodeIgniter-JWT-Sample/blob/30c05d0d710b6da07b05a45f7dbd68cde78ca8e1/system/Debug/Toolbar/Collectors/History.php | system/Debug/Toolbar/Collectors/History.php | <?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014-2019 British Columbia Institute of Technology
* Copyright (c) 2019-2020 CodeIgniter Foundation
*
* Permission is hereby granted, free of charge,... | php | MIT | 30c05d0d710b6da07b05a45f7dbd68cde78ca8e1 | 2026-01-05T02:39:07.204597Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.