Skip to content

Instantly share code, notes, and snippets.

View devochka's full-sized avatar

Svetlana Osipova devochka

View GitHub Profile
@devochka
devochka / import_users.php
Created October 15, 2017 08:13 — forked from denysbutenko/import_users.php
[modx revo]import users from csv
<?php
require_once '/absolute_path/config.core.php';
require_once MODX_CORE_PATH.'model/modx.class.php';
$modx = new modX();
$modx->initialize('web');
$modx->getService('error','error.modError');
//To get Base Path
$basePath = $modx->config['base_path'];
// Prepare the data

Keybase proof

I hereby claim:

  • I am devochka on github.
  • I am lana (https://keybase.io/lana) on keybase.
  • I have a public key whose fingerprint is 8015 DD43 7991 E585 0F5C 6769 6D15 1320 F08B 95E5

To claim this, I am signing this object: