ssh-keygen -t rsa
Once you have entered the Gen Key command, you will get a few more questions:
<?php | |
/** | |
* | |
* Multisite module for Processwire | |
* (C) 2012 Antti Peisa, Avoine Oy | |
* | |
* ProcessWire 2.x | |
* Copyright (C) 2010 by Ryan Cramer | |
* Licensed under GNU/GPL v2, see LICENSE.TXT | |
* |
<?php | |
class ShoppingCheckout extends WireData implements Module, ConfigurableModule | |
{ | |
public static function getModuleInfo() | |
{ | |
return array( | |
'title' => 'Shopping Checkout', | |
'version' => 001, | |
'summary' => 'Handles checkout process, order saving etc. Main module for PW Shop', |
<?php | |
// .... module | |
// create fields and templates using arrays | |
public function getTemplatesConfig() { | |
// title | field1 | field2 ... | |
$templatesArray = array( | |
'category' => array('title'), |
<?php namespace ProcessWire; | |
include('index.php'); | |
$contractingRole = wire('roles')->get('contracting-user'); | |
$managerRole = wire('roles')->get('manager'); | |
$managerRole->of(false); | |
$managerRole->permissions = $contractingRole->permissions; | |
$managerRole->save(); |
<?php | |
class ProcessReleases extends Process implements Module { | |
public static function getModuleInfo() { | |
return array( | |
'title' => "Releases", | |
'version' => "0.0.1", | |
'summary' => "Show releases for the mydatafactory application.", | |
'autoload' => false, |
<?php namespace ProcessWire; | |
include("../index.php"); | |
foreach (wire('fields') as $f) { | |
if (count($f->getFieldgroups())) continue; | |
echo $f->name . "<hr>"; | |
wire('fields')->delete($f); | |
} |
<?php | |
$field = $fields->get("field_name_here"); // Insert system field i.e. roles | |
$field->flags = Field::flagSystemOverride; | |
$field->flags = 0; | |
$field->save(); |
<?php namespace ProcessWire; | |
include('index.php'); | |
/** | |
* CSV format | |
* | |
* title,datetime_matching_date,page_matching_person | |
* 464,12/24/2014,1132 | |
* 1750,5/9/2016,1132 |