Просмотр файла user/user_stop.php

Размер файла: 789B
<?php
if (is_file($cms.'user/'.$_SESSION['user_login'].'/profile.php'))
{
  if (!is_file($cms.'user/'.$_SESSION['user_login'].'/balans.txt'))
  {
  $fp = fopen ($cms.'user/'.$_SESSION['user_login'].'/balans.txt', "w+");
  fwrite ($fp, '50');
  fclose ($fp);
  }

  if (!is_file($cms.'user/'.$_SESSION['user_login'].'/avatar.txt'))
  {
  $fp = fopen ($cms.'user/'.$_SESSION['user_login'].'/avatar.txt', "w+");
  fwrite ($fp, 'moduls/avatar/cms_avatar/Dolphin.jpg');
  fclose ($fp);
  @mkdir($cms.'moduls/avatar/user_avatar/'.$_SESSION['user_login'].'/',0777);
  }


  if (!is_file($cms.'user/'.$_SESSION['user_login'].'/tema.txt'))
  {
  $fp = fopen ($cms.'user/'.$_SESSION['user_login'].'/tema.txt', "w+");
  fwrite ($fp, $cms_theme_UP);
  fclose ($fp);
  }

}
?>