-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aced4be
commit b64bce3
Showing
7 changed files
with
126 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
donjo-app/Database/Migrations/2023-11-14-150413_CreateCiSessionsTable.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace App\Database\Migrations; | ||
|
||
use CodeIgniter\Database\Migration; | ||
|
||
class CreateCiSessionsTable extends Migration | ||
{ | ||
protected $DBGroup = 'default'; | ||
|
||
public function up() | ||
{ | ||
$this->forge->addField([ | ||
'id' => ['type' => 'VARCHAR', 'constraint' => 128, 'null' => false], | ||
'ip_address' => ['type' => 'VARCHAR', 'constraint' => 45, 'null' => false], | ||
'timestamp timestamp DEFAULT CURRENT_TIMESTAMP NOT NULL', | ||
'data' => ['type' => 'BLOB', 'null' => false], | ||
]); | ||
$this->forge->addKey(['id', 'ip_address'], true); | ||
$this->forge->addKey('timestamp'); | ||
$this->forge->createTable('sessions', true); | ||
} | ||
Check warning Code scanning / PHPMD Naming Rules: ShortMethodName Warning
Avoid using short method names like CreateCiSessionsTable::up(). The configured minimum method name length is 3.
|
||
|
||
public function down() | ||
{ | ||
$this->forge->dropTable('sessions', true); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
120 changes: 60 additions & 60 deletions
120
resources/assets/js/plugins/ckeditor/samples/old/assets/posteddata.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,60 @@ | ||
<!DOCTYPE html> | ||
<?php | ||
/* | ||
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. | ||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
?> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Sample — CKEditor</title> | ||
<link rel="stylesheet" href="sample.css"> | ||
<meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities."> | ||
</head> | ||
<body> | ||
<h1 class="samples"> | ||
CKEditor — Posted Data | ||
</h1> | ||
<table border="1" cellspacing="0" id="outputSample"> | ||
<colgroup><col width="120"></colgroup> | ||
<thead> | ||
<tr> | ||
<th>Field Name</th> | ||
<th>Value</th> | ||
</tr> | ||
</thead> | ||
<?php | ||
|
||
if (!empty($_POST)) | ||
{ | ||
foreach ( $_POST as $key => $value ) | ||
{ | ||
if ( ( !is_string($value) && !is_numeric($value) ) || !is_string($key) ) | ||
continue; | ||
|
||
if ( get_magic_quotes_gpc() ) | ||
$value = htmlspecialchars( stripslashes((string)$value) ); | ||
else | ||
$value = htmlspecialchars( (string)$value ); | ||
?> | ||
<tr> | ||
<th style="vertical-align: top"><?php echo htmlspecialchars( (string)$key ); ?></th> | ||
<td><pre class="samples"><?php echo $value; ?></pre></td> | ||
</tr> | ||
<?php | ||
} | ||
} | ||
?> | ||
</table> | ||
<div id="footer"> | ||
<hr> | ||
<p> | ||
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a> | ||
</p> | ||
<p id="copy"> | ||
Copyright © 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. | ||
</p> | ||
</div> | ||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
<?php | ||
/* | ||
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. | ||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
*/ | ||
?> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>Sample — CKEditor</title> | ||
<link rel="stylesheet" href="sample.css"> | ||
<meta name="description" content="Try the latest sample of CKEditor 4 and learn more about customizing your WYSIWYG editor with endless possibilities."> | ||
</head> | ||
<body> | ||
<h1 class="samples"> | ||
CKEditor — Posted Data | ||
</h1> | ||
<table border="1" cellspacing="0" id="outputSample"> | ||
<colgroup><col width="120"></colgroup> | ||
<thead> | ||
<tr> | ||
<th>Field Name</th> | ||
<th>Value</th> | ||
</tr> | ||
</thead> | ||
<?php | ||
|
||
if (! empty($_POST)) { | ||
foreach ($_POST as $key => $value) { | ||
if ((! is_string($value) && ! is_numeric($value)) || ! is_string($key)) { | ||
continue; | ||
} | ||
|
||
if (get_magic_quotes_gpc()) { | ||
$value = htmlspecialchars(stripslashes((string) $value)); | ||
} else { | ||
$value = htmlspecialchars((string) $value); | ||
} | ||
?> | ||
<tr> | ||
<th style="vertical-align: top"><?= htmlspecialchars((string) $key); ?></th> | ||
<td><pre class="samples"><?= $value; ?></pre></td> | ||
</tr> | ||
<?php | ||
} | ||
} | ||
?> | ||
</table> | ||
<div id="footer"> | ||
<hr> | ||
<p> | ||
CKEditor - The text editor for the Internet - <a class="samples" href="https://ckeditor.com/">https://ckeditor.com</a> | ||
</p> | ||
<p id="copy"> | ||
Copyright © 2003-2021, <a class="samples" href="https://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. | ||
</p> | ||
</div> | ||
</body> | ||
</html> |
33 changes: 17 additions & 16 deletions
33
resources/assets/js/plugins/ckeditor/samples/old/sample_posteddata.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
<?php /* <body><pre> | ||
------------------------------------------------------------------------------------------- | ||
CKEditor - Posted Data | ||
We are sorry, but your Web server does not support the PHP language used in this script. | ||
Please note that CKEditor can be used with any other server-side language than just PHP. | ||
To save the content created with CKEditor you need to read the POST data on the server | ||
side and write it to a file or the database. | ||
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. | ||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
------------------------------------------------------------------------------------------- | ||
</pre><div style="display:none"></body> */ include "assets/posteddata.php"; ?> | ||
<?php | ||
/* <body><pre> | ||
------------------------------------------------------------------------------------------- | ||
CKEditor - Posted Data | ||
We are sorry, but your Web server does not support the PHP language used in this script. | ||
Please note that CKEditor can be used with any other server-side language than just PHP. | ||
To save the content created with CKEditor you need to read the POST data on the server | ||
side and write it to a file or the database. | ||
Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. | ||
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license | ||
------------------------------------------------------------------------------------------- | ||
</pre><div style="display:none"></body> */ include 'assets/posteddata.php'; |