Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP7 0.9.9 Installer #5

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions known2/php7/0.9.9/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright Known, Inc <[email protected]>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
130 changes: 130 additions & 0 deletions known2/php7/0.9.9/init.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
<?xml version="1.0"?>
<installer>

<information>
<info id="version" value="0.9.9"/>
<info id="license" value="_apps_opensource"/>
<info id="date" value="2019-01-22"/>
<info id="cost" value=""/>
</information>

<links>
</links>

<requirements>
<requirement id="itron-version" value="5.0.0"/>
<requirement id="diskspace" value="50"/>
<requirement id="database" value="1"/>
<requirement id="db-type" value="mysql"/>
<requirement id="db-prefix-support" value="0"/>
<requirement id="php-url-fopen" value="1"/>
<requirement id="php-register-globals" value="0"/>
<requirement id="php-magic-quotes" value="0"/>
<requirement id="php-safe-mode" value="0"/>
<requirement id="php-open-basedir" value="0"/>
<requirement id="php-short-open-tag" value="1"/>
<requirement id="php-version-minimum" value="5.4"/>
</requirements>

<skeleton>
<file id=".gitignore">
<file id=".htaccess">
<file id=".travis.yml">
<file id="ansible.sample">
<file id="chrome">
<file id="config.ini" isconfig="true"/>
<file id="ConsolePlugins">
<file id="CONTRIBUTORS.md">
<file id="css">
<file id="docs">
<file id="docs-mkdocs.yml">
<file id="doxygen.conf">
<file id="external">
<file id="gfx">
<file id="HARASSMENT-POLICY.md">
<file id="htaccess-2.4.dist">
<file id="htaccess.dist">
<file id="Idno">
<file id="IdnoPlugins">
<file id="index.php">
<file id="ISSUE_TEMPLATE">
<file id="js">
<file id="known.php">
<file id="LICENSE">
<file id="mkdocs.yml">
<file id="nginx.conf">
<file id="phpunit.xml">
<file id="PULL_REQUEST_TEMPLATE">
<file id="README.md">
<file id="schemas">
<file id="statics">
<file id="templates">
<file id="Tests">
<file id="Themes">
<file id="Uploads">
<file id="Vagrantfile.sample">
<file id="version.known">
<file id="warmup">
</skeleton>

<archives>
<archive id="main" url="http://assets.withknown.com/releases/known-0.9.9.tgz" type="tar.gz" md5="728d8dc6bf4a8c7dd9cdb2ca58d2fe6a"/>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for looking into this!

Suggestion, I'd definitely consider using the 1.0.0 build at least - 0.9.9 is basically prehistoric at this point.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you know it was collapsed in the releases channel (never visited the repo before, so perhaps something that trips up others)

</archives>

<install>
<?php

// extract the 'main' archive:
$this->extract("main");

// TIP: this is where you install code goes. see: http://www.installatron.com/sdk
// TIP: if no code is added here, the installer will simply extract the archive
// into the install directory.

// TIP: install code is made of Installatron commands. some examples:
// move $this->mv('FROM','TO');
// copy $this->cp('FROM','TO');
// remove (delete) $this->rm('FILE_OR_DIR');
// chmod $this->chmod('FILE_OR_DIR',0777);
// edit file (regex) $this->sr('FILE','#REGEX#","REPLACE_WITH");
// ...see all the commands at: http://www.installatron.com/sdk_commands

$this->chmod('Uploads',0755);
$this->db_import('schemas/mysql/mysql.sql');
$this->cp('htaccess.dist','.htaccess');

// TIP: Installatron has a lot of useful variables. some examples:
// install url $this->url
// install path $this->path
// database host $this->db_host
// database host $this->db_host
// database name $this->db_name
// database username $this->db_user
// database password $this->db_pass
// table prefix $this->db_prefix
// ...see all the variables at: http://www.installatron.com/sdk_commands

// TIP: you can add as many steps as you need
// TIP: you can remove these comments if you don't need them.

$this->write('config.ini', '
database = "MySQL"
dbuser = "/##dbuser##/"
dbpass = "/##dbpass##/"
dbname = "/##dbname##/"
dbhost = "/##dbhost##/"
title = "/##title##/"
path = "/##path##/"
uploadpath = "/##uploadpath##/"
');

$this->sr("config.ini", "/##dbuser##/", ($this->db_user));
$this->sr("config.ini", "/##dbpass##/", ($this->db_pass));
$this->sr("config.ini", "/##dbhost##/", ($this->db_host));
$this->sr("config.ini", "/##dbname##/", ($this->db_name));
$this->sr("config.ini", "/##path##/", $this->path);
$this->sr("config.ini", "/##uploadpath##/", $this->path . '/Uploads');
$this->sr("config.ini", "/##title##/", ($this->input["field_sitetitle"]));
?>
</install>
</installer>
104 changes: 104 additions & 0 deletions known2/php7/0.9.9/install.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
<?php


/**
* known version 0.9.9 - install
*
* @author Your Name Here
*/
class i_known2_0_9_9_install extends i_action_install
{ //==========================================================================
// STEP I: INTERNAL CONFIGURABLES
//==========================================================================

public function step1_init()
{
$this->setStepLabel("_step_progress_settings");
// TIP: custom inputs can be added here! see: http://www.installatron.com/sdk_commands#howinput
}

public function step1_process()
{
// TIP: error checking for custom inputs can be added here
}

//==========================================================================
// STEP II: ARCHIVE EXTRACTION
//==========================================================================

public function step2_init()
{
$this->setStepLabel("_step_progress_extracting");
}

public function step2_process()
{
/// extract the 'main' archive:
$this->extract("main");
}

//==========================================================================
// STEP III: CONFIGURING INSTALL
//==========================================================================

public function step3_init()
{
$this->setStepLabel("_step_progress_processing");
}

public function step3_process()
{
// TIP: this is where you install code goes. see: http://www.installatron.com/sdk
// TIP: if no code is added here, the installer will simply extract the archive
// into the install directory.

// TIP: install code is made of Installatron commands. some examples:
// move $this->mv('FROM','TO');
// copy $this->cp('FROM','TO');
// remove (delete) $this->rm('FILE_OR_DIR');
// chmod $this->chmod('FILE_OR_DIR',0777);
// edit file (regex) $this->sr('FILE','#REGEX#","REPLACE_WITH");
// ...see all the commands at: http://www.installatron.com/sdk_commands

$this->chmod('Uploads',0755);
$this->db_import('schemas/mysql/mysql.sql');
$this->cp('htaccess.dist','.htaccess');

// TIP: Installatron has a lot of useful variables. some examples:
// install url $this->url
// install path $this->path
// database host $this->db_host
// database host $this->db_host
// database name $this->db_name
// database username $this->db_user
// database password $this->db_pass
// table prefix $this->db_prefix
// ...see all the variables at: http://www.installatron.com/sdk_commands

// TIP: you can add as many steps as you need
// TIP: you can remove these comments if you don't need them.

$this->write('config.ini', '
database = "MySQL"
dbuser = "/##dbuser##/"
dbpass = "/##dbpass##/"
dbname = "/##dbname##/"
dbhost = "/##dbhost##/"
title = "/##title##/"
path = "/##path##/"
uploadpath = "/##uploadpath##/"
');

$this->sr("config.ini", "/##dbuser##/", ($this->db_user));
$this->sr("config.ini", "/##dbpass##/", ($this->db_pass));
$this->sr("config.ini", "/##dbhost##/", ($this->db_host));
$this->sr("config.ini", "/##dbname##/", ($this->db_name));
$this->sr("config.ini", "/##path##/", $this->path);
$this->sr("config.ini", "/##uploadpath##/", $this->path . '/Uploads');
$this->sr("config.ini", "/##title##/", ($this->input["field_sitetitle"]));

}
}


?>
Binary file added known2/php7/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added known2/php7/icon175.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added known2/php7/icon1752x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added known2/php7/icon64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added known2/php7/icon642x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
29 changes: 29 additions & 0 deletions known2/php7/init.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<installer>
<information>
<info id="id" value="known2"/>
<info id="build" value="10"/>
<info id="status" value="enabled"/>
<info id="name" value="_installer_known2_title"/>
<info id="type" value="_installer_known2_type"/>
<info id="category" value="_installer_known2_category"/>
<info id="created" value="2019-01-22"/>
<info id="description" value="_installer_known2_description"/>
<info id="authordescription" value="_installer_known2_authordescription"/>
</information>

<changelog url="http://docs.withknown.com/en/latest/changelog.html">

<links>
<link id="site" value="http://https://withknown.com/"/>
<link id="docs" value="http://docs.withknown.com/"/>
<link id="support" value="http://community.withknown.com/"/>
</links>

<versions>
<branch id="current">
<version id="0.9.9" upgrade="none" install="auto"/>
</branch>

</versions>
</installer>
5 changes: 5 additions & 0 deletions known2/php7/locale_en.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
_installer_known2_title=Known
_installer_known2_type=_types_blog
_installer_known2_category=_categories_contentmanagementsystems
_installer_known2_description=Create a single website for all your content. Publish to your own site, share to Twitter, Facebook and more.
_installer_known2_authordescription=Known
Binary file added known2/php7/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added known2/php7/logo2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added known2/php7/sc1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added known2/php7/sc2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added known2/php7/sc3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added known2/php7/sc4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions known2/php7/showcases.xml.cache
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
!odMbo!
Sjad+y0IU9ZHwFyIW0YqZW4000000000WLCBNySsN0UFCOz2Hxl2EggF9RfoVeiV5hytIk4C6w4l
uP7zSr+rNJiiOqMogUeUezNNabUj9Mj8bkJ48ruxIao0E9iJH6vmSspjey7HIAgbDaZ42oUMZ4EI
SRrtktIJkbH14dvnSjcZ+VdILZrNv5MzsG88fGeGFP3TtTKngvb2CySJeoVhv22o9byZ3js3E07S
3ukguF/NTPJ8RPoLrYx7puzBVrfbbRifkhQDswA+p6+xC0AxI1i4500dNRkAZZYBEWPveynlQtvQ
worJseTgfmbRs6HpAvfw8L93l1/m2B+s9bjZ9MQtdFOe40TQFS8dTum8bKXf+P0ulCTB8G0QX/rx
X+Q3Z0MB9HcSWdUo4lkboapucUUhiGhRZE1CAv4iSAeI1yP2l3JXjQQMoEWM8pJ+BGrEM4DUlQMl
3Kec7SxUZ2aCWzwPLN0qElqKvHt3TdE8KZnSN+/kMSgNLcy2ZJOv3o4XrqpSEFIwzvtRbFZx9hGP
X9yUDFiRxe2Kat63sKmjl5Aju2IKlPWQgfjGkC4Kcn0=