<commit_before><h1>Import Active Pods List</h1>

<?php if ($POD->activating): ?>
  
  <h3>Activating Pods...</h3>
  
  <?php if(count($POD->activated_success)): ?>
    <h4>The following pods successfully loaded:</h4>
    <ul>
      <?php foreach ($POD->activated_success as $s): ?>
        <li><?php echo $s ?></li>
      <?php endforeach ?>
    </ul>
  <?php else:?>
    <h4>No pods needed to load</h4>
  <?php endif ?>
  
  <?php if(count($POD->activated_failure)): ?>
    <h4>The following pods failed to load:</h4>
    <ul>
      <?php foreach ($POD->activated_failure as $f): ?>
        <li><?php echo $f ?></li>
      <?php endforeach ?>
    </ul>
  <?php endif ?>
  
  <?php if($POD->newsflash): ?>
    <p><?php echo $POD->newsflash ?></p>
  <?php endif ?>
  
<?php endif ?>

<h2>Steps:</h2>
<ol>
  <li>Copy a list of active pods from another PeoplePods site</li>
  <li>Paste that list into this form</li>
  <li>Hit "Import Pods"</li>
</ol>

<form 
  action='<?php $POD->siteRoot() ?>/export?action=importactivepods'
  method='POST'
>
  <input type='text' name='podjson' id='podjson'>
  
  <input type='submit' value='Import Pods'>
  
</form><commit_msg>explicatory text, plus a link home.<commit_after><h1>Import Active Pods List</h1>

<?php if ($POD->activating): ?>
  
  <h3>Activating Pods...</h3>
  
  <?php if(count($POD->activated_success)): ?>
    <h4>The following pods successfully loaded:</h4>
    <ul>
      <?php foreach ($POD->activated_success as $s): ?>
        <li><?php echo $s ?></li>
      <?php endforeach ?>
    </ul>
  <?php else:?>
    <h4>No pods needed to load</h4>
  <?php endif ?>
  
  <?php if(count($POD->activated_failure)): ?>
    <h4>The following pods failed to load:</h4>
    <ul>
      <?php foreach ($POD->activated_failure as $f): ?>
        <li><?php echo $f ?></li>
      <?php endforeach ?>
    </ul>
  <?php endif ?>
  
  <?php if($POD->newsflash): ?>
    <p><?php echo $POD->newsflash ?></p>
  <?php endif ?>
  
<?php endif ?>

<h2>Steps:</h2>
<ol>
  <li>Copy a list of active pods from another PeoplePods site</li>
  <li>Paste that list into this form</li>
  <li>Hit "Import Pods"</li>
</ol>

<p>
  At present this pod only activates inactive plugins;
  it will not deactivate active ones.
</p>

<form 
  action='<?php $POD->siteRoot() ?>/export?action=importactivepods'
  method='POST'
>
  <input type='text' name='podjson' id='podjson'>
  
  <input type='submit' value='Import Pods'>
  
</form>
<a href='<?php $POD->siteRoot()?>/export'>Back to Import/Export homepage</a>
{'fraction_non_alphanumeric': 0.20126782884310618, 'fraction_numerical': 0.009508716323296355, 'mean_word_length': 3.29421768707483, 'pattern_counts': {'":': 0, '<': 110, '<?xml version=': 0, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4127636', 'n_tokens_mistral': 956, 'n_tokens_neox': 938, 'n_words': 240}