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 |
|---|---|---|---|---|---|---|---|---|
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/StreamMode.php | src/OpenTok/StreamMode.php | <?php
namespace OpenTok;
use OpenTok\Util\BasicEnum;
/**
* Defines streamMode values that can be used when either starting an Archive or a Broadcast
*/
abstract class StreamMode extends BasicEnum
{
/**
* Default mode, will automatically add all streams to Archive or Broadcast
*/
public const AUTO... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Util/Validators.php | src/OpenTok/Util/Validators.php | <?php
namespace OpenTok\Util;
use OutOfBoundsException;
use OpenTok\Archive;
use OpenTok\Util\Client;
use OpenTok\Layout;
use OpenTok\Role;
use OpenTok\MediaMode;
use OpenTok\ArchiveMode;
use OpenTok\OutputMode;
use OpenTok\OpenTok;
use OpenTok\Exception\InvalidArgumentException;
use JohnStevenson\JsonWorks\Document;... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Util/Client.php | src/OpenTok/Util/Client.php | <?php
namespace OpenTok\Util;
use Psr\Http\Message\MessageInterface;
use RuntimeException;
use SimpleXMLElement;
use Throwable;
use Composer\InstalledVersions;
use Exception as GlobalException;
use OpenTok\Layout;
use Firebase\JWT\JWT;
use OpenTok\MediaMode;
use GuzzleHttp\Middleware;
use GuzzleHttp\HandlerStack;
use... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | true |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Util/BasicEnum.php | src/OpenTok/Util/BasicEnum.php | <?php
namespace OpenTok\Util;
use ReflectionClass;
/**
* @internal
*/
abstract class BasicEnum
{
private static ?array $constCacheArray = null;
private static function getConstants()
{
if (self::$constCacheArray === null) {
self::$constCacheArray = [];
}
$calledClass... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/ArchiveAuthenticationException.php | src/OpenTok/Exception/ArchiveAuthenticationException.php | <?php
namespace OpenTok\Exception;
/**
* Defines the exception thrown when you use an invalid API or secret and call an archiving method.
*/
class ArchiveAuthenticationException extends AuthenticationException implements ArchiveException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/SignalException.php | src/OpenTok/Exception/SignalException.php | <?php
namespace OpenTok\Exception;
/**
* The interface used by all exceptions resulting from calls to the signal API.
*/
interface SignalException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/SignalNetworkConnectionException.php | src/OpenTok/Exception/SignalNetworkConnectionException.php | <?php
namespace OpenTok\Exception;
use RuntimeException;
/**
* Defines an exception thrown when a call to a signal method results in no
* response from the server
*/
class SignalNetworkConnectionException extends RuntimeException implements SignalException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/SignalConnectionException.php | src/OpenTok/Exception/SignalConnectionException.php | <?php
namespace OpenTok\Exception;
/**
* Defines an exception thrown when a call to a signal method results in an error response from
* the server.
*/
class SignalConnectionException extends DomainException implements SignalException
{
/** @ignore */
public function __construct($message, $code)
{
... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/ForceDisconnectException.php | src/OpenTok/Exception/ForceDisconnectException.php | <?php
namespace OpenTok\Exception;
/**
* The interface used by all exceptions resulting from calls to the signal API.
*/
interface ForceDisconnectException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/ArchiveUnexpectedValueException.php | src/OpenTok/Exception/ArchiveUnexpectedValueException.php | <?php
namespace OpenTok\Exception;
/**
* Defines an exception thrown when a call to an archiving method results in an error due to an
* unexpected value.
*/
class ArchiveUnexpectedValueException extends UnexpectedValueException implements ArchiveException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/ArchiveException.php | src/OpenTok/Exception/ArchiveException.php | <?php
namespace OpenTok\Exception;
/**
* The interface used by all exceptions resulting from calls to the archiving API.
*/
interface ArchiveException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/SignalUnexpectedValueException.php | src/OpenTok/Exception/SignalUnexpectedValueException.php | <?php
namespace OpenTok\Exception;
/**
* Defines an exception thrown when a call to a signal method results in an error due to an
* unexpected value.
*/
class SignalUnexpectedValueException extends UnexpectedValueException implements SignalException
{
/** @ignore */
public function __construct($message, $code... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/SignalAuthenticationException.php | src/OpenTok/Exception/SignalAuthenticationException.php | <?php
namespace OpenTok\Exception;
/**
* Defines the exception thrown when you use an invalid API or secret and call a signal method.
*/
class SignalAuthenticationException extends AuthenticationException implements SignalException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/Exception.php | src/OpenTok/Exception/Exception.php | <?php
namespace OpenTok\Exception;
/**
* The interface used by all exceptions in the OpenTok PHP API.
*/
interface Exception
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/ArchiveDomainException.php | src/OpenTok/Exception/ArchiveDomainException.php | <?php
namespace OpenTok\Exception;
// TODO: this kind of exception has a detailed message from the HTTP response, use it.
/**
* Defines an exception thrown when a call to an archiving method results in an error response from
* the server.
*/
class ArchiveDomainException extends DomainException implements ArchiveExcep... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/ForceDisconnectAuthenticationException.php | src/OpenTok/Exception/ForceDisconnectAuthenticationException.php | <?php
namespace OpenTok\Exception;
/**
* Defines the exception thrown when you use an invalid API or secret and call the force disconnect method.
*/
class ForceDisconnectAuthenticationException extends AuthenticationException implements ForceDisconnectException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/BroadcastException.php | src/OpenTok/Exception/BroadcastException.php | <?php
namespace OpenTok\Exception;
/**
* The interface used by all exceptions resulting from calls to the broadcast API.
*/
interface BroadcastException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/ForceDisconnectConnectionException.php | src/OpenTok/Exception/ForceDisconnectConnectionException.php | <?php
namespace OpenTok\Exception;
/**
* Defines an exception thrown when a call to a force disconnect method results in an error response from
* the server.
*/
class ForceDisconnectConnectionException extends DomainException implements ForceDisconnectException
{
/** @ignore */
public function __construct($me... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/UnexpectedValueException.php | src/OpenTok/Exception/UnexpectedValueException.php | <?php
namespace OpenTok\Exception;
/**
* Defines an exception thrown in result of an unexpected value.
*/
class UnexpectedValueException extends \UnexpectedValueException implements Exception
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/InvalidArgumentException.php | src/OpenTok/Exception/InvalidArgumentException.php | <?php
namespace OpenTok\Exception;
/**
* Defines an exception thrown when you pass an invalid argument into a method.
*/
class InvalidArgumentException extends \InvalidArgumentException implements Exception
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/BroadcastUnexpectedValueException.php | src/OpenTok/Exception/BroadcastUnexpectedValueException.php | <?php
namespace OpenTok\Exception;
/**
* Defines an exception thrown when a call to a broadcast method results in an error due to an
* unexpected value.
*/
class BroadcastUnexpectedValueException extends UnexpectedValueException implements BroadcastException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/AuthenticationException.php | src/OpenTok/Exception/AuthenticationException.php | <?php
namespace OpenTok\Exception;
// TODO: this kind of exception is more meaningful if we pass in the apiKey and apiSecret
/**
* Defines the exception thrown when you use an invalid API or secret.
*/
class AuthenticationException extends DomainException implements Exception
{
/** @ignore */
public function ... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/DomainException.php | src/OpenTok/Exception/DomainException.php | <?php
namespace OpenTok\Exception;
/**
* Defines an exception thrown when an API call results in an error response from
* the server.
*/
class DomainException extends \DomainException implements Exception
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/ForceDisconnectUnexpectedValueException.php | src/OpenTok/Exception/ForceDisconnectUnexpectedValueException.php | <?php
namespace OpenTok\Exception;
/**
* Defines an exception thrown when a call to the force disconnect method results in an error due to an
* unexpected value.
*/
class ForceDisconnectUnexpectedValueException extends UnexpectedValueException implements ForceDisconnectException
{
/** @ignore */
public functi... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/BroadcastAuthenticationException.php | src/OpenTok/Exception/BroadcastAuthenticationException.php | <?php
namespace OpenTok\Exception;
/**
* Defines the exception thrown when you use an invalid API or secret and call a broadcast method.
*/
class BroadcastAuthenticationException extends AuthenticationException implements BroadcastException
{
}
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/src/OpenTok/Exception/BroadcastDomainException.php | src/OpenTok/Exception/BroadcastDomainException.php | <?php
namespace OpenTok\Exception;
// TODO: this kind of exception has a detailed message from the HTTP response, use it.
/**
* Defines an exception thrown when a call to a broadcast method results in an error response from
* the server.
*/
class BroadcastDomainException extends DomainException implements BroadcastEx... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/bootstrap.php | tests/bootstrap.php | <?php
$loader = require __DIR__ . "/../vendor/autoload.php";
$loader->addPsr4('OpenTok\\', __DIR__.'/OpenTok');
| php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/TestHelpers.php | tests/OpenTokTest/TestHelpers.php | <?php
namespace OpenTokTest;
use Exception;
use Firebase\JWT\Key;
use GuzzleHttp\Psr7\Response;
use \Firebase\JWT\JWT;
class TestHelpers
{
// TODO: untested, unused
/**
* @return mixed[]
*/
public static function decodeSessionId($sessionId): array
{
$trimmedSessionId = substr((strin... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/RenderTest.php | tests/OpenTokTest/RenderTest.php | <?php
namespace OpenTokTest;
use OpenTok\Render;
use PHPUnit\Framework\TestCase;
class RenderTest extends TestCase
{
public function testCannotHydrateWithWrongPayload(): void
{
$this->expectError();
$payload = [
'id' => '1248e7070b81464c9789f46ad10e7764',
'sessionId' =... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/SessionTest.php | tests/OpenTokTest/SessionTest.php | <?php
namespace OpenTokTest;
use OpenTok\OpenTok;
use OpenTok\Session;
use OpenTok\MediaMode;
use OpenTok\ArchiveMode;
use PHPUnit\Framework\TestCase;
class SessionTest extends TestCase
{
protected $API_KEY;
protected $API_SECRET;
protected $opentok;
protected static $mockBasePath;
public stati... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/LayoutTest.php | tests/OpenTokTest/LayoutTest.php | <?php
namespace OpenTokTest;
use InvalidArgumentException;
use RuntimeException;
use OpenTok\Layout;
use OpenTok\Util\Validators;
use PHPUnit\Framework\TestCase;
class LayoutTest extends TestCase
{
public function testStylesheetIsNotInSerializedArrayIfNotCustom(): void
{
$layouts = [
Layo... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/SipCallTest.php | tests/OpenTokTest/SipCallTest.php | <?php
namespace OpenTokTest;
use OpenTok\SipCall;
use PHPUnit\Framework\TestCase;
class SipCallTest extends TestCase
{
public function testSipCallAttributes(): void
{
$sipCallData = [
'id' => '1_MX4xMjM0NTY3OH4',
'connectionId' => 'VGh1IEZlYiAyNyAwNDozODozMSBQU1QgMjAxNH4wLjI0ND... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/OpenTokTest.php | tests/OpenTokTest/OpenTokTest.php | <?php
namespace OpenTokTest;
use OpenTok\Archive;
use OpenTok\ArchiveList;
use OpenTok\Exception\ForceDisconnectConnectionException;
use OpenTok\Broadcast;
use TypeError;
use OpenTok\Stream;
use OpenTok\SipCall;
use Exception;
use OpenTok\Exception\SignalConnectionException;
use OpenTok\Exception\SignalUnexpectedValu... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | true |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/BroadcastTest.php | tests/OpenTokTest/BroadcastTest.php | <?php
namespace OpenTokTest;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use OpenTok\Broadcast;
use OpenTok\Exception\InvalidArgumentException;
use OpenTok\StreamMode;
use OpenTok\Util\Client;
use PHPUnit\Framework\TestCase;
class BroadcastTest extends TestCase
{
p... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/ArchiveTest.php | tests/OpenTokTest/ArchiveTest.php | <?php
namespace OpenTokTest;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Middleware;
use OpenTok\Archive;
use OpenTok\Exception\InvalidArgumentException;
use OpenTok\Stream;
use OpenTok\StreamMode;
use OpenTok\Util\Client;
use PHPUnit\Framework\TestCase;
class ArchiveTest extends ... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/Util/ClientTest.php | tests/OpenTokTest/Util/ClientTest.php | <?php
namespace OpenTokTest\Util;
use GuzzleHttp\Client as GuzzleHttpClient;
use GuzzleHttp\Handler\MockHandler;
use GuzzleHttp\HandlerStack;
use GuzzleHttp\Psr7\Response;
use OpenTok\Exception\SignalAuthenticationException;
use OpenTok\Exception\SignalConnectionException;
use OpenTok\Exception\SignalUnexpectedValueE... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/tests/OpenTokTest/Validators/ValidatorsTest.php | tests/OpenTokTest/Validators/ValidatorsTest.php | <?php
namespace OpenTokTest\Validators;
use stdClass;
use OpenTok\Exception\InvalidArgumentException;
use OpenTok\Util\Client;
use OpenTok\Util\Validators;
use PHPUnit\Framework\TestCase;
class ValidatorsTest extends TestCase
{
public function testIsVonageKeypair(): void
{
$apiKey = '1ab38a10-ed9d-4e... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/sample/SipCall/templates/index.php | sample/SipCall/templates/index.php | <!DOCTYPE html>
<html>
<head>
<title>Wormhole Sample App</title>
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Muli:300,300italic" type='text/css'>
<link rel='stylesheet' href='/stylesheets/style.css' />
<link rel='stylesheet' href='/stylesheets/pattern.css' />
<script src="https:... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/sample/SipCall/web/index.php | sample/SipCall/web/index.php | <?php
$autoloader = __DIR__ . '/../vendor/autoload.php';
$sdkAutoloader = __DIR__ . '/../../../vendor/autoload.php';
if (!file_exists($autoloader)) {
die('You must run `composer install` in the sample app directory');
}
if (!file_exists($sdkAutoloader)) {
die('You must run `composer install` in the SDK root ... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/sample/Archiving/web/index.php | sample/Archiving/web/index.php | <?php
use Slim\Views\Twig;
$autoloader = __DIR__ . '/../vendor/autoload.php';
$sdkAutoloader = __DIR__ . '/../../../vendor/autoload.php';
if (!file_exists($autoloader)) {
die('You must run `composer install` in the sample app directory');
}
if (!file_exists($sdkAutoloader)) {
die('You must run `composer ins... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/sample/HelloWorld/templates/helloworld.php | sample/HelloWorld/templates/helloworld.php | <!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>OpenTok Hello World</title>
<script src="https://static.opentok.com/v2/js/opentok.min.js"></script>
<script type="text/javascript">
var apiKey = '<?php echo $apiKey; ?>';
var sessionId = '<?php echo $sessionId; ?>';
... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
opentok/OpenTok-PHP-SDK | https://github.com/opentok/OpenTok-PHP-SDK/blob/387ee2649193ce992367e56acdd5977f978f6841/sample/HelloWorld/web/index.php | sample/HelloWorld/web/index.php | <?php
$autoloader = __DIR__ . '/../vendor/autoload.php';
$sdkAutoloader = __DIR__ . '/../../../vendor/autoload.php';
if (!file_exists($autoloader)) {
die('You must run `composer install` in the sample app directory');
}
if (!file_exists($sdkAutoloader)) {
die('You must run `composer install` in the SDK root ... | php | MIT | 387ee2649193ce992367e56acdd5977f978f6841 | 2026-01-05T04:38:08.121964Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/index.php | index.php | <?php
/**
* phpSQLiteCMS - a simple and lightweight PHP web content management system
* based on PHP and SQLite
*
* @author Mark Hoschek < mail at mark-hoschek dot de >
* @copyright Mark Hoschek 2014
* @version 3.x
* @link http://phpsqlitecms.net/
* @package phpSQLiteCMS
*
* The MIT License (MIT)
*
* Copyri... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/index.php | cms/index.php | <?php
/**
* phpSQLiteCMS - a simple and lightweight PHP web content management system
* based on PHP and SQLite
*
* @author Mark Hoschek < mail at mark-hoschek dot de >
* @copyright Mark Hoschek 2014
* @version 3.x
* @link http://phpsqlitecms.net/
* @package phpSQLiteCMS
*
* The MIT License (MIT)
*
* Copyri... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/ukrainian.admin.lang.php | cms/lang/ukrainian.admin.lang.php | <?php
// Meta informaton:
$lang['lang'] = 'ua';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('uk_UA.utf8','ua','ukr');
$lang['time_format'] = '%d-%m-%Y, %H:%M';
$lang['time_format_full'] = '%A, %B %d, %Y, %H:%M'... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | true |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/russian.page.lang.php | cms/lang/russian.page.lang.php | <?php
// phpSQLiteCMS Russian Language pack
// translated by Valery votintsev, codersclub.org
// Meta informaton:
$lang['lang'] = 'ru';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('ru_RU.utf8','ru','rus');
$lang['dir'] = ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/bulgarian.admin.lang.php | cms/lang/bulgarian.admin.lang.php | <?php
// phpSQLiteCMS Bulgarian language pack
// Created: 04.03.2014
// Last modified: 04.03.2014
# meta
$lang['lang'] = 'bg';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('bg_BG.utf8','bg','bul');
$lang['time_format'] = '%Y... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | true |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/english.admin.lang.php | cms/lang/english.admin.lang.php | <?php
$lang['lang'] = 'en';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('en_US.utf8','en','eng');
$lang['time_format'] = '%Y-%m-%d, %H:%M';
$lang['time_format_full'] = '%A, %B %d, %Y, %H:%M';
$lang['dir'] = ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/chinese_zh-CN.admin.lang.php | cms/lang/chinese_zh-CN.admin.lang.php | <?php
$lang['lang'] = 'cn';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('zh_CN.utf8','en','eng');
$lang['time_format'] = '%Y-%m-%d, %H:%M';
$lang['time_format_full'] = '%A, %B %d, %Y, %H:%M';
$lang['dir'] = ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/english.page.lang.php | cms/lang/english.page.lang.php | <?php
// Meta informaton:
$lang['lang'] = 'en';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('en_US.utf8','en','eng');
$lang['dir'] = 'ltr';
// General:
$lang['exception_title'] = 'Error';
$lang['except... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/polish.admin.lang.php | cms/lang/polish.admin.lang.php | <?php
/*
Author of translation Lukasz Zyla
site: bicluc.net
e-mail: bicluc@gmail.com
*/
$lang['lang'] = 'pl';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('pl_PL.utf8','pl','pol');
$lang['time_format'] = '%Y-%m-%d, %H:%M';
$l... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/spanish.page.lang.php | cms/lang/spanish.page.lang.php | <?php
// Meta informaton:
$lang['lang'] = 'es';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('es_ES.utf8','es','esp');
$lang['dir'] = 'ltr';
// General:
$lang['exception_title'] = 'Error';
$lang['except... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/ukrainian.page.lang.php | cms/lang/ukrainian.page.lang.php | <?php
// Meta informaton:
$lang['lang'] = 'ua';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('uk_UA.utf8','ua','ukr');
$lang['dir'] = 'ltr';
// General:
$lang['exception_title'] = 'Помилка';
$lang['exc... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/russian.admin.lang.php | cms/lang/russian.admin.lang.php | <?php
// phpSQLiteCMS Russian Language pack
// translated by Valery votintsev, codersclub.org
// Meta informaton:
$lang['lang'] = 'ru';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('ru_RU.utf8','ru','rus');
$lang['time_format'] = ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | true |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/bulgarian.page.lang.php | cms/lang/bulgarian.page.lang.php | <?php
// phpSQLiteCMS Bulgarian language pack
// Created: 04.03.2014
// Last modified: 04.03.2014
// Meta informaton:
$lang['lang'] = 'bg';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('bg_BG.utf8','bg','bul');
$lang['dir'] = ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/german.page.lang.php | cms/lang/german.page.lang.php | <?php
// Meta-Informaton:
$lang['lang'] = 'de';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('de_DE.utf8', 'de_DE', 'de_DE@euro','de','deu');
$lang['dir'] = 'ltr';
// Allgemein:
$lang['exception_title'] = ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/chinese_zh-CN.page.lang.php | cms/lang/chinese_zh-CN.page.lang.php | <?php
// Meta informaton:
$lang['lang'] = 'cn';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('zh_CN.utf8','en','eng');
$lang['dir'] = 'ltr';
// General:
$lang['exception_title'] = '发生错误';
$lang['excepti... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/polish.page.lang.php | cms/lang/polish.page.lang.php | <?php
/*
Author of translation Lukasz Zyla
site: bicluc.net
e-mail: bicluc@gmail.com
*/
// Meta informaton:
$lang['lang'] = 'pl';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('pl_PL.utf8','pl','pol');
$lang['dir'] = ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/german.admin.lang.php | cms/lang/german.admin.lang.php | <?php
$lang['lang'] = 'en';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('de_DE.utf8', 'de_DE', 'de_DE@euro','de','deu');
$lang['time_format'] = '%d.%m.%Y, %H:%M';
$lang['time_format_full'] = '%A, %d. %B %Y, %H:%... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/lang/spanish.admin.lang.php | cms/lang/spanish.admin.lang.php | <?php
$lang['lang'] = 'es';
$lang['charset'] = 'utf-8';
$lang['locale'] = array('es_ES.utf8','es','esp');
$lang['time_format'] = '%d/%m/%y, %H:%M';
$lang['time_format_full'] = '%d/%m/%y, %H:%M';
$lang['dir'] = ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/settings.inc.php | cms/includes/settings.inc.php | <?php
if(!defined('IN_INDEX') || empty($_SESSION[$settings['session_prefix'].'user_id'])) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_type']) && $_SESSION[$settings['session_prefix'].'user_type']==1)
{
if(isset($_POST['settings_submitted']))
{
if(empty($_POST['caching'])) $_POST['caching'] = 0... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/photo_comment.inc.php | cms/includes/photo_comment.inc.php | <?php
$comment = new Comment(PAGE, $photo_data['id'], 1);
// settings:
$comment->comments_per_page = $settings['comments_per_page'];
$comment->comment_order = $settings['comment_order'];
$comment->name_maxlength = $settings['name_maxlength'];
$comment->email_hp_maxlength = $settings['email_hp_maxlength'];
$comment->wo... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/ajaxprocess.inc.php | cms/includes/ajaxprocess.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
if(isset($_REQUEST['action']))
{
switch($_REQUEST['action'])
{
case 'reorder':
if(isset($_REQUEST['galleries']))
{
$table = Database::$db_settings['photo_table'];
$li... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/admin_index.inc.php | cms/includes/admin_index.inc.php | <?php
if(!defined('IN_INDEX') || empty($_SESSION[$settings['session_prefix'].'user_id'])) exit;
if(isset($_GET['msg']))
{
$template->assign('msg',htmlspecialchars($_GET['msg']));
}
$template->assign('subtemplate', 'admin_index.inc.tpl');
?>
| php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/functions.inc.php | cms/includes/functions.inc.php | <?php
// autoload required classes:
function __autoload($class_name)
{
require_once(BASE_PATH.'cms/includes/classes/'.$class_name.'.class.php');
}
if(get_magic_quotes_gpc())
{
function stripslashes_deep($value)
{
$value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/functions.admin.inc.php | cms/includes/functions.admin.inc.php | <?php
/**
* generates password hash
*
* @param string $pw
* @return string
*/
function generate_pw_hash($pw)
{
$salt = bin2hex(openssl_random_pseudo_bytes(22));
$hash = crypt($pw, '$6$rounds=5000$'.$salt.'$');
return $hash;
}
/**
* checks password comparing it with the hash
*
* @param string $pw
* @pa... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/spam_protection.inc.php | cms/includes/spam_protection.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']) && $_SESSION[$settings['session_prefix'].'user_type']==1)
{
if(isset($_POST['spam_protection_submit']))
{
// banists:
if(isset($_POST['banned_ips']) && trim($_POST['banned_ips']) != '')
{
$banned_ip... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/menus.inc.php | cms/includes/menus.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']) && $_SESSION[$settings['session_prefix'].'user_type']==1)
{
if(isset($_GET['edit']))
{
$menu = $_GET['edit'];
$action = 'edit';
}
if(isset($_REQUEST['delete']))
{
if(isset($_REQUEST['confirmed']))... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/exception.inc.php | cms/includes/exception.inc.php | <?php
if(!defined('IN_INDEX')) exit;
$debug_mode = true;
$website_title = isset($settings['website_title']) ? $settings['website_title'] : 'phpSQLiteCMS';
$lang = isset($localization) ? Localization::$lang['lang'] : 'en';
$charset = isset($localization) && isset(Localization::$lang['charset']) ? Localization::$lang['... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/galleries.inc.php | cms/includes/galleries.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
if(isset($_GET['edit']))
{
$dbr = Database::$content->prepare("SELECT id, gallery, sequence, photo_normal, photo_thumbnail, title, subtitle, description, description_formatting FROM ".Database::$db_settings['ph... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/edit.inc.php | cms/includes/edit.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'main';
if(isset($_SESSION[$settings['session_prefix'].'wysiwyg']) && $_SESSION[$settings['session_prefix'].'wysiwyg']==1) $wysiwyg = true;
if(isset($... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/insert_thumbnail.inc.php | cms/includes/insert_thumbnail.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
if(isset($_REQUEST['form']))
{
$template->assign('form',htmlspecialchars($_REQUEST['form']));
}
if(isset($_REQUEST['field']))
{
$template->assign('field',htmlspecialchars($_REQUEST['field']));
}
... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/insert_gallery.inc.php | cms/includes/insert_gallery.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
$dbr = Database::$content->query("SELECT DISTINCT gallery FROM ".Database::$db_settings['photo_table']." ORDER BY gallery ASC");
while($data = $dbr->fetch())
{
$galleries[] = htmlspecialchars($data['galler... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/users.inc.php | cms/includes/users.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
if(isset($_POST['new_user_submitted']) && $_SESSION[$settings['session_prefix'].'user_type']==1)
{
if(trim($_POST['name'])=='' || trim($_POST['pw'])=='' || trim($_POST['pw_r'])=='')
{
$errors[] = 'er... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/filemanager.inc.php | cms/includes/filemanager.inc.php | <?php
if(!defined('IN_INDEX')) exit;
$media_dir = 'media';
$file_dir = 'files';
$template->assign('media_dir', $media_dir);
$template->assign('file_dir', $file_dir);
$directory = isset($_REQUEST['directory']) && $_REQUEST['directory']==$file_dir ? $file_dir : $media_dir;
$template->assign('directory', $directory);
... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/functions.mb_replacements.inc.php | cms/includes/functions.mb_replacements.inc.php | <?php
/*
* Replacement functions for the multibyte string functions.
* Only include this file if the multibyte string functionsa are not available!
*/
function mb_internal_encoding($charset='')
{
}
function mb_strlen($str, $encoding='')
{
return strlen ($str);
}
function mb_substr($str, $start, $length=0, $... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/insert_image.inc.php | cms/includes/insert_image.inc.php | <?php
if(!defined('IN_INDEX')) exit;
$img_path = BASE_PATH.MEDIA_DIR;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
if(isset($_REQUEST['form']))
{
$template->assign('form',htmlspecialchars($_REQUEST['form']));
}
if(isset($_REQUEST['field']))
{
$template->assign('field',htmlspecia... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/gcb.inc.php | cms/includes/gcb.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
if(isset($_GET['add_gcb']))
{
$content_auto_html = 1;
$action = 'edit_gcb';
}
if(isset($_POST['edit_gcb_submit']))
{
$identifier = isset($_POST['identifier']) ? trim($_POST['identifier']) : '';... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/login.inc.php | cms/includes/login.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']) && empty($action))
{
session_destroy();
header("Location: ../");
}
elseif(empty($_SESSION[$settings['session_prefix'].'user_id']) && isset($_POST['username']) && isset($_POST['userpw']))
{
$username = $_POST['usern... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/comments.inc.php | cms/includes/comments.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'main';
$type = isset($_REQUEST['type']) && $_REQUEST['type']==1 ? 1 : 0; // 0 = page comments, 1 = photo comments
$template->assign('type', $type);
... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/modal.inc.php | cms/includes/modal.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']) && isset($_REQUEST['action']))
{
switch($_REQUEST['action'])
{
case 'insert_gallery':
$dbr = Database::$content->query("SELECT DISTINCT gallery FROM ".Database::$db_settings['photo_table']." ORDER BY gallery ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/photo.inc.php | cms/includes/photo.inc.php | <?php
if(!defined('IN_INDEX')) exit;
$content_query = 'SELECT id, page, title, type, type_addition, language, content FROM '.Database::$db_settings['pages_table'].' WHERE lower(page)=:page AND status!=0 LIMIT 1';
$dbr = Database::$content->prepare($content_query);
$dbr->bindValue(':page', PAGE, PDO::PARAM_STR);
$dbr->... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/functions.content.inc.php | cms/includes/functions.content.inc.php | <?php
function myFunction($x,$y)
{
return $x + $y;
}
?>
| php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/pages.inc.php | cms/includes/pages.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
#$admin_sub_menu = '<a href="'.basename($_SERVER['PHP_SELF']).'?mode=edit">'.$lang['create_new_page'].'</a>';
// delete page:
if(isset($_REQUEST['delete_page']))
{
$dbr = Database::$content->prepare("SELECT ... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/content.inc.php | cms/includes/content.inc.php | <?php
if(!defined('IN_INDEX')) exit;
// menus:
$template->assign('menus', get_menus());
// global content blocks:
if($settings['global_content_blocks']) $template->assign('gcb', get_global_content_blocks());
// content:
if(empty($data)) // might already be set if error page was loaded
{
if($data=get_content(PAGE)... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/notes.inc.php | cms/includes/notes.inc.php | <?php
if(!defined('IN_INDEX')) exit;
if(isset($_SESSION[$settings['session_prefix'].'user_id']))
{
$action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'main';
if(isset($_GET['edit']))
{
$dbr = Database::$content->prepare("SELECT id, title, text, text_formatting, link, linkname FROM ".Database::$d... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/notes_rss.php | cms/includes/page_types/notes_rss.php | <?php
if(!defined('IN_INDEX')) exit;
$dbr = Database::$content->prepare("SELECT time, title, text, text_formatting, link FROM ".Database::$db_settings['notes_table']." WHERE note_section=:note_section ORDER BY time DESC LIMIT ".$settings['rss_maximum_items']);
$dbr->bindParam(':note_section', $data['type_addition'], P... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/redirect.php | cms/includes/page_types/redirect.php | <?php
#unset($template_file);
if(isset($cache) && $cache->doCaching)
{
$cache->cacheId = PAGE;
$cache_content = "<?php\nheader('".$_SERVER['SERVER_PROTOCOL']." 301 Moved Permanently');\nheader('Location: ".$data['type_addition']."');\n?>";
$cache->createChacheFile($cache_content);
}
header($_SERVER['SERVER_PR... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/language_redirect.php | cms/includes/page_types/language_redirect.php | <?php
#unset($template_file);
// page type e.g. 'en,index_en;es,index_es;de,index_de'
/**
* determines the langauge settings of the browser, details see here:
* http://aktuell.de.selfhtml.org/artikel/php/httpsprache/
*/
function lang_getfrombrowser($allowed_languages, $default_language, $lang_variable = null, $str... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/sitemap.php | cms/includes/page_types/sitemap.php | <?php
if(!defined('IN_INDEX')) exit;
$current_time = time();
$dbr = Database::$content->prepare("SELECT id, page, title, teaser, time, last_modified FROM ".Database::$db_settings['pages_table']." WHERE include_sitemap=:include_sitemap AND time<=:time AND status!=0 ORDER BY last_modified DESC");
$dbr->bindParam(':incl... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/search.php | cms/includes/page_types/search.php | <?php
if(!defined('IN_INDEX')) exit;
switch(Database::$db_settings['type'])
{
case 'sqlite':
case 'sqlite2':
$general_clause = "(page || title || page_title || content || keywords || description || sidebar_1 || sidebar_2 || sidebar_3) LIKE ?";
$special_clause = "(page || title || page_title || keywords || d... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/simple_news.php | cms/includes/page_types/simple_news.php | <?php
if($authorized_to_edit && isset($_GET['get_1']) && isset($_GET['get_2']) && $_GET['get_2']=='delete' && isset($_REQUEST['confirmed']))
{
$delete_id = $_GET['get_1'];
}
elseif($authorized_to_edit && isset($_POST['delete']) && isset($_POST['confirmed']))
{
$delete_id = $_POST['delete'];
}
if($authorized_to_... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/overview.php | cms/includes/page_types/overview.php | <?php
if(!defined('IN_INDEX')) exit;
$dbr = Database::$content->prepare("SELECT id, page, headline, content, content_formatting, teaser_headline, teaser, teaser_formatting, teaser_img, link_name FROM ".Database::$db_settings['pages_table']." WHERE include_page=:include_page ORDER BY include_order ASC");
$dbr->bindPara... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/rss.php | cms/includes/page_types/rss.php | <?php
if(!defined('IN_INDEX')) exit;
$current_time = time();
$dbr = Database::$content->prepare("SELECT id, page, type, category, title, teaser, teaser_formatting, teaser_img, teaser_headline, content, content_formatting, time, last_modified FROM ".Database::$db_settings['pages_table']." WHERE include_rss=:include_rs... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/news.php | cms/includes/page_types/news.php | <?php
if(!defined('IN_INDEX')) exit;
$news = new News($data['id'], $settings['news_per_page']);
if(isset($_GET['get_1']) && ($_GET['get_1']=='rss' || $_GET['get_1']=='rss-fullfeed'))
{
if($settings['enable_fullfeeds'] && $_GET['get_1']=='rss-fullfeed')
{
$template->assign('rss_items', $news->get_feed($sett... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/formmailer.php | cms/includes/page_types/formmailer.php | <?php
if(!defined('IN_INDEX')) exit;
$recipients_raw = explode(',',$data['type_addition']);
foreach($recipients_raw as $item)
{
$recipients[] = trim($item);
}
if(isset($_POST['send']))
{
// get posted data:
$email = isset($_POST['email']) ? trim($_POST['email']) : '';
$subject = isset($_POST['subject']) ?... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/gallery.php | cms/includes/page_types/gallery.php | <?php
if(!defined('IN_INDEX')) exit;
$gallery = new Gallery($data['type_addition']);
if($gallery->photos)
{
$template->assign('number_of_photos', $gallery->number_of_photos);
$template->assign('photos_per_row', $gallery->photos_per_row);
$template->assign('photos', $gallery->photos);
}
$template->assign('con... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/notes.php | cms/includes/page_types/notes.php | <?php
if(isset($_GET['get_1'])) // note opened
{
$dbr = Database::$content->prepare("SELECT id, note_section, time, title, text, text_formatting FROM ".Database::$db_settings['notes_table']." WHERE id=:id LIMIT 1");
$dbr->bindParam(':id', $_GET['get_1'], PDO::PARAM_STR);
$dbr->execute();
$note_data = $dbr->fet... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/page_types/commentable_page.php | cms/includes/page_types/commentable_page.php | <?php
if(!defined('IN_INDEX')) exit;
if($settings['pingbacks_enabled']) $template->assign('pingback', BASE_URL.PAGE.',pingback');
$comment = new Comment(PAGE, $data['id']);
// settings:
$comment->comments_per_page = $settings['comments_per_page'];
$comment->comment_order = $settings['comment_order'];
$comment->name_... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
ilosuna/phpsqlitecms | https://github.com/ilosuna/phpsqlitecms/blob/fbb8c4696efb4ef98d71acecc8e314bc19e4281d/cms/includes/classes/Localization.class.php | cms/includes/classes/Localization.class.php | <?php
class Localization
{
const FORMAT_TIME = true;
private static $_instance = null;
public static $lang;
private static $_lang;
private $replacement;
public function __construct($language_file)
{
self::$_instance = $this;
if($language_file)
{
require($language_file);
self::... | php | MIT | fbb8c4696efb4ef98d71acecc8e314bc19e4281d | 2026-01-05T04:38:17.082887Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.