Compare commits
No commits in common. "9d04075c723492204a36c2d1ebbb44cae1afa5ba" and "4fd82cb3d95f54e263fc5347c771002f11ede43c" have entirely different histories.
9d04075c72
...
4fd82cb3d9
2 changed files with 3 additions and 5 deletions
|
@ -20,7 +20,7 @@ Anyways, let's get to the *how*.
|
||||||
if you have trouble displaying them in your database manager, let me know
|
if you have trouble displaying them in your database manager, let me know
|
||||||
and I might get to writing some basic setup instructions here.
|
and I might get to writing some basic setup instructions here.
|
||||||
- Please create the file `docs/common/config.php` which will store database
|
- Please create the file `docs/common/config.php` which will store database
|
||||||
credentials that will then be used in `docs/common/header.php`
|
credential that will then be used in `docs/common/header.php`
|
||||||
to connect to the db and set the global variable `$conn` to the PDO
|
to connect to the db and set the global variable `$conn` to the PDO
|
||||||
connection object, you can use that in your own functions, if you add any.
|
connection object, you can use that in your own functions, if you add any.
|
||||||
- The file should define the following constants:
|
- The file should define the following constants:
|
||||||
|
@ -34,11 +34,9 @@ Anyways, let's get to the *how*.
|
||||||
if you are going to make use of that function. Please note that it is
|
if you are going to make use of that function. Please note that it is
|
||||||
meant for admin use only and normal users shouldn't have access to it
|
meant for admin use only and normal users shouldn't have access to it
|
||||||
as it is unprotected.
|
as it is unprotected.
|
||||||
- Also make sure that the directory /assets/uploads/ exists and php has write
|
- Also make sure that the folder /assets/uploads/ exists and php has write
|
||||||
permissions there - if you are going to use that file upload
|
permissions there - if you are going to use that file upload
|
||||||
functionality, that is.
|
functionality, that is.
|
||||||
- Php should also have write permissions in the docs/www/blog directory,
|
|
||||||
so it can update the atom feed.
|
|
||||||
- If you have problems connecting to the database, you can try
|
- If you have problems connecting to the database, you can try
|
||||||
printing the PDO exception being caught there in the function
|
printing the PDO exception being caught there in the function
|
||||||
`attempt_sql_connect()`, but be careful not to leave it in production, as
|
`attempt_sql_connect()`, but be careful not to leave it in production, as
|
||||||
|
|
|
@ -288,7 +288,7 @@ if(isset($_GET["guid"])) {
|
||||||
$title_prefill = $result["title"];
|
$title_prefill = $result["title"];
|
||||||
$address_prefill = $result["readable_address"];
|
$address_prefill = $result["readable_address"];
|
||||||
$abstract_prefill = $result["abstract"];
|
$abstract_prefill = $result["abstract"];
|
||||||
$content_prefill = sanitize_input($result["content"]);
|
$content_prefill = $result["content"];
|
||||||
|
|
||||||
// select the tags for this article from the database
|
// select the tags for this article from the database
|
||||||
$stmt = $conn->prepare("SELECT blogpost_tags.name FROM
|
$stmt = $conn->prepare("SELECT blogpost_tags.name FROM
|
||||||
|
|
Loading…
Reference in a new issue